小编nav*_*dcy的帖子

清理 git 存储库 BFG Repo-Cleaner --- 推送后存储库大小仍然很大

我正在尝试使用 BFG 存储库清洁器清理我的 git 存储库。所以我做了: git clone --mirror https://github.com/FourierFlows/FourierFlows.jl.git 使用BFG,例如, java -jar bfg-1.13.0.jar --delete-files 'twodturb*.png' FourierFlows.jl.git 然后 cd FourierFlows.jl.git git reflog expire --expire=now --all && git gc --prune=now --aggressive

存储库现在要小得多(1.9MB 与 880MB 相比)。但是当我推回并稍后git clone --mirror再次尝试时,我仍然得到了我开始使用的大小的存储库。

navid:FourierFlows.jl.git/ (master) $ git push
Counting objects: 4824, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (1639/1639), done.
Writing objects: 100% (4824/4824), 1.67 MiB | 1.07 MiB/s, done.
Total 4824 (delta 3061), reused 4824 (delta 3061)
remote: Resolving deltas: 100% …
Run Code Online (Sandbox Code Playgroud)

git github bfg-repo-cleaner

6
推荐指数
1
解决办法
1412
查看次数

标签 统计

bfg-repo-cleaner ×1

git ×1

github ×1