2011-11-08 32 views
0

我按照說明here從我的回購使用過濾器分支刪除二進制文件。在文章的結尾說修復使用過濾器分支後的意外合併

Make sure your collab uses rebase and not merge, 
otherwise he will just reintroduce the file and the entire tainted history… 

不幸的是我讀的是回購後有人用合併。現在我的歷史有很多重複的提交:

commit 16c3838a7338c639421b9f244b572b6e23c0c3f7 
Author: foo bar <[email protected]> 
Date: Mon Nov 7 13:20:28 2011 -0800 

    update todo 

commit 213ae8da0af8e92afa9808c3b16cecf0e1cc7a0c 
Author: foo bar <[email protected]> 
Date: Fri Nov 4 21:14:08 2011 -0700 

    update todo 

而且這些二進制文件已經在那些重複的提交中引入。如何擺脫重複的提交和二進制文件?

+0

如果沒有任何幫助,並且您還沒有運行垃圾收集,那麼您可以隨時撤消使用'git reflog'所做的操作。 – poke

回答

1

只要去一個修訂版本,然後做rebase。

相關問題