git pack-refs
git pack-refs [--all]
Risk: Safe
What it does
Moves many small ref files into one file, .git/packed-refs.
When to use it
Rarely by hand: git gc does it for you.
Example
$ git pack-refs --allPack branches too, not only tags.
Learn it in: Refs, the HEAD file and reftable · Official docs