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
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...