Managing .git file size

Posted by DavidP6 on Stack Overflow See other posts from Stack Overflow or by DavidP6
Published on 2010-05-28T00:09:31Z Indexed on 2010/05/28 0:11 UTC
Read the original article Hit count: 211

Filed under:

My .git file has grown to 229Mb and I wondering what the best way to cut down the size is. I know about git gc and have been using it a fair amount. I'm not totally sure about how git works, but I know that there is packaged information in there that I no longer need. Like, I know I no longer need the first five branches saved. Is there a way to completely erase really old branches or commits or something like that?

© Stack Overflow or respective owner

Related posts about git