一个非常基础的git问题:
我将一些敏感信息上传到Github,并使用bfg来清理仓库。我按照文档进行了操作,执行了以下步骤:
$ git clone --mirror git://example.com/some-big-repo.git
$ bfg --replace-text passwords.txt my-repo.git
我收到了以下输出:
Found 233 objects to protect
Found 9 commit-pointing refs : HEAD, refs/heads/experimental, refs/heads/master, ...
Protected commits
-----------------
These are your protected commits, and so their contents will NOT be altered:
* commit 497fc1c8 (protected by 'HEAD')
Cleaning
--------
Found 80 commits
Cleaning commits: 100% (80/80)
Cleaning commits completed in 301 ms.
BFG aborting: No refs to update - no dirty commits found??
我想确认私人信息是否已从我的仓库中清除,但我不确定如何检查镜像仓库中的文件。有什么建议吗?
bfg --delete-files seeds my-repo.git
。 - Roberto Tyley