Blog

git gc

Posted by david on 10 September 2012 at 11:11 pm

Have a Git repo that is getting rather large, from multiple deleted branches and merges? Use "git gc".

http://www.kernel.org/pub/software/scm/git/docs/git-gc.html

git gc is the garbage collection command and frees up space by removing unneeded clutter in the repo. It reduced my local Clay repo from 19mb to 12mb.

Comments

Log in to comment

No comments yet!