我已经使用以下过程使用BFG Repo Cleaner清理了我的 repo :
$ git clone --mirror git://example.com/some-big-repo.git
$ java -jar bfg.jar --strip-biggest-blobs 500 some-big-repo.git
$ cd some-big-repo.git
$ git reflog expire --expire=now --all
$ git gc --prune=now --aggressive
$ git push
我可以看到我的本地仓库缩小了 1GB。伟大的。我现在遇到的问题是我找不到任何信息,现在我也想缩小 GitHub-repo 的大小。如何做到这一点?
git push
没有用,我也试过git push origin --force --all
了,这给了我这个错误信息:error: --all and --mirror are incompatible