【发布时间】:2013-12-24 19:11:29
【问题描述】:
我有一个想要从我的回购历史记录中删除的文件。我已经在本地 repo 上运行了命令:git filter-branch --force --index-filter \
'git rm --cached --ignore-unmatch faultyfiles.json' \
--prune-empty --tag-name-filter cat -- --all
但是当我想将它推送到 github 时,我被要求先拉动。当我拉动时,你猜对了,错误文件来自origin。我该如何摆脱它?
【问题讨论】: