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

Question about bare repositories

From
APAndy Parkins <andyparkins@gmail.com>
Date
Mar 16, 2007, 09:47 UTC
Message-ID
<200703160947.03833.andyparkins@gmail.com>
Hello,

I'm having an understanding problem, rather than a git problem. It came about because I was looking at a repository using gitweb. The repository was bare, and happened to have HEAD pointing at an old branch that hadn't been updated for a long time. I was confused because I wasn't seeing new commits. Once I set HEAD to master in the bare repository, gitweb showed the new commits.

All that led me to this question, which isn't a criticism, but has exposed a hole in my understanding of git.

Why does a bare repository have/need a HEAD?
Andy
-- 
Dr Andy Parkins, M Eng (hons), MIET
andyparkins@gmail.com
Next: Junio C Hamano
Message 1 of 4 in “Question about bare repositories”
  1. Andy ParkinsMar 16, 2007
  2. Junio C HamanoMar 16, 2007
  3. Andy ParkinsMar 16, 2007
  4. Johannes SchindelinMar 16, 2007

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.