我按照这里的指令使用过滤器分支从repo中删除了一个二进制文件。文章最后说
Make sure your collab uses rebase and not merge,
otherwise he will just reintroduce the file and the entire tainted history…不幸的是,当有人在回购上使用merge后,我读到了这一段。现在我的历史上有很多重复的提交:
commit 16c3838a7338c639421b9f244b572b6e23c0c3f7
Author: foo bar <foo@bar.com>
Date: Mon Nov 7 13:20:28 2011 -0800
update todo
commit 213ae8da0af8e92afa9808c3b16cecf0e1cc7a0c
Author: foo bar <foo@bar.com>
Date: Fri Nov 4 21:14:08 2011 -0700
update todo二进制文件已在重复提交中引入。如何处理重复提交和二进制文件?
发布于 2011-11-08 21:36:40
只需返回一次修订,然后进行重基。
https://stackoverflow.com/questions/8057263
复制相似问题