Re: "git gc" removes ".git/refs/heads/master".
- From
- Peter Baumann <waste.manager@gmx.de>
- Date
- Jan 29, 2009, 19:55 UTC
- Message-ID
- <20090129195526.GA15475@m62s10.vlinux.de>
- In-Reply-To
- <83c97f59a5a5e59f908f3fc125d26adb@lunox.net>
On Thu, Jan 29, 2009 at 08:31:17PM +0100, Bernd Lommerzheim wrote:
Show 6 quoted lines
> Hi, > > maybe I found a bug in git. When I execute "git gc" in my local repository, > git removes the file ".git/refs/heads/master". Is this an intended behavior > (but why?) or is that a bug? >
This is intential, as git gc creates .git/packed-refs in which the contents of your master branch are stored. The packed-refs help speeding up the listing of your branches if you have many of them (e.g. many old historical ones).
Regards, Peter Baumann