非常基本的Git問題後:檢查git倉庫使用BFG回購清潔
我上傳了一些影響信息Github上,並正在使用高爐煤氣清洗回購。我跟着文檔和執行以下操作:
$ 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??
我想看看如果私人信息是從我的回購清除,但我不確定如何檢查鏡像回購中的文件。有任何想法嗎?
謝謝。鎬是我正在尋找的。我最終只是決定使用標準的強力git-filter-branch方法來擦除種子文件的日誌歷史記錄(因爲它應該放在我的.gitignore中)。 – Tag0Mag0
當然 - 如果你想完全刪除任何名爲'seeds'的文件,你也可以使用'bfg --delete-files seeds my-repo.git'。 –
啊,非常好。再次感謝。 – Tag0Mag0