git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: "git gc" removes ".git/refs/heads/master".

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jan 29, 2009, 19:50 UTC
Message-ID
<alpine.DEB.1.00.0901292050050.3586@pacific.mpi-cbg.de>
In-Reply-To
<83c97f59a5a5e59f908f3fc125d26adb@lunox.net>
Hi,
On Thu, 29 Jan 2009, Bernd Lommerzheim wrote:
> 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?

No, it packs the refs. You have no business accessing files in .git/ directly :-)

Ciao, Dscho

Previous: Bernd LommerzheimNext: Johannes Gilger
Message 2 of 5 in “"git gc" removes ".git/refs/heads/master".”
  1. Bernd LommerzheimJan 29, 2009
  2. Johannes SchindelinJan 29, 2009
  3. Johannes GilgerJan 29, 2009
  4. Peter BaumannJan 29, 2009
  5. Junio C HamanoJan 29, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.