![](/img/trans.png)
[英]How to use .jar tool BFG Repo Cleaner and reduce git repository?
[英]BFG repo cleaner not cleaning repository on remote
您好,我在 azure devops 上有一個 13.2 GB 的非常大的 git 存儲庫。 我想重寫這個 git 存儲庫的歷史。 減少存儲庫大小。 我使用了 bfg repo 清潔器。 我遵循了此鏈接中的所有步驟:[在此處輸入鏈接描述][1]。 git 存儲庫大小在我的本地存儲庫上減少到 1.86 GB。 但是當我克隆遠程存儲庫時,它仍然是 13.2 GB 大。 雖然我能夠成功推動 git。
我遵循的步驟:
java -jar bfg.jar --strip-blobs-big-than 100M some-big-repo.git
$ cd some-big-repo.git $ git reflog expire --expire=now --all && git gc --prune=now --aggressive
git 推 --force
誰能告訴我我做錯了什么?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.