How to remove unreferenced blobs from my git repo

后端 未结 10 2348
轻奢々
轻奢々 2020-11-22 15:07

I have a GitHub repo that had two branches - master & release.

The release branch contained binary distribution files that were contributing to a very large repo

10条回答
  •  遥遥无期
    2020-11-22 15:19

    To add another tip, don't forget to use git remote prune to delete the obsolete branches of your remotes before using git gc

    you can see them with git branch -a

    It's often useful when you fetch from github and forked repositories...

提交回复
热议问题