`
jw1314
  • 浏览: 27813 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

git 瘦身,BFG Repo-Cleaner简介

 
阅读更多

通过bfg.jar工具,永久删除git里的大文件。

工具位置 https://rtyley.github.io/bfg-repo-cleaner/,使用也很简单。

$ git clone --mirror git://example.com/some-big-repo.git
$ java -jar bfg.jar --strip-blobs-bigger-than 100M some-big-repo.git
$ cd some-big-repo.git
$ git reflog expire --expire=now --all && git gc --prune=now --aggressive
$ git push
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics