How to delete one folder / directory using BFG repo cleaner?

一世执手 提交于 2019-12-03 11:29:10
rm.rf.etc

I found the answer here: remove files from specific path

The author of BFG says it can't be done, unless you use a special command to dump all blobs for a given directory to a text file, and then use --strip-blobs-with-ids and provide that text file.

[UPDATE] This doesn't work for me. I run the command:

git log --format=%H -- cms/assets/ | xargs -IcommitId git rev-parse commitId:cms/assets/

I get a list of 8 blob ids. I put those in text file, then I exec bfg -bi ~/tmp/blob-ids, and BFG exits saying: BFG aborting: No refs to update - no dirty commits found??

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!