From: Jeff King Date: Thu, 08 May 2008 20:51:29 GMT Subject: Re: git gc & deleted branches Message-ID: <20080508205129.GA32762@sigill.intra.peff.net> In-Reply-To: On Thu, May 08, 2008 at 08:55:50PM +0200, Guido Ostkamp wrote: > Jeff, I tried it, but it has no effect (see below). There is only the > master branch left, and only one commit therein, still it uses the space > former occupied by the branch. I'm using git version 1.5.5.1.147.g867f. It worked fine for me; it's possible, as Brandon mentioned, that it is in a pack already, and only a "repack -a" would get rid of it. FWIW, my steps were: # ...same as you for repo and branch creation git branch -D test git config gc.reflogexpire 0 git config gc.reflogexpireunreachable 0 git config gc.pruneexpire now git gc du -s .git ;# shows 10396 -Peff