【发布时间】:2014-02-04 06:00:36
【问题描述】:
我一直在使用 BFG Repo-Cleaner 工具,以便通过从目录层次结构中的多个位置删除(临时/大)文件来清理 git repo 的历史......
即 /root/test/a.txt /root/test2/a.txt
现在我想删除 所有 'test/a.txt' 的引用,但 保留 /test2/a.txt 版本..
有没有办法使用 BFG 彻底删除它? (如https://help.github.com/articles/remove-sensitive-data 所述)
由于 repo 有相当长的历史(10K 提交)BFG 确实比我迄今为止看到的其他方法快 很多...
【问题讨论】: