我镜像了一个 git 存储库并application.properties从MyProject存储库中删除了包含密码的内容。我可以看到下面的消息Deleted files和我的文件名:
$ java -jar bfg-1.13.0.jar --delete-files application.properties --no-blob-protection MyProject.git
Using repo : \\hnas1-users\USERS\dan\Desktop\bfg_test_after_delete\MyProject.git
Found 0 objects to protect
Found 4 commit-pointing refs : HEAD, refs/heads/Single_home_page, refs/heads/Second_home_page, refs/heads/master
Protected commits
-----------------
You're not protecting any commits, which means the BFG will modify the contents of even *current* commits.
This isn't recommended - ideally, if your current commits are dirty, you should fix up your working copy and commit that, check that your …Run Code Online (Sandbox Code Playgroud) git ×1