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

git-fetch while on "(no branch)"

From
APAndy Parkins <andyparkins@gmail.com>
Date
Jan 15, 2007, 10:09 UTC
Message-ID
<200701151009.51868.andyparkins@gmail.com>
Hello,
Just ran this while on a detached HEAD.

$ git fetch fatal: ref HEAD is not a symbolic ref fatal: ref HEAD is not a symbolic ref fatal: ref HEAD is not a symbolic ref remote: Generating pack... ...etc...

The fetch appears to have succeeded anyway, but it's a scary message that tells a user something is "fatal". Has this done any damage?

Andy
-- 
Dr Andy Parkins, M Eng (hons), MIEE
andyparkins@gmail.com
Next: Jeff King
Message 1 of 7 in “git-fetch while on "(no branch)"”
  1. Andy ParkinsJan 15, 2007
  2. git-{parse-remote,pull}: throw away stderr of git-symbolic-refJeff King, Jan 15, 2007
  3. Junio C HamanoJan 15, 2007
  4. git-pull: disallow implicit merging to detached HEADJeff King, Jan 15, 2007
  5. Jeff KingJan 15, 2007
  6. Junio C HamanoJan 15, 2007
  7. Jeff KingJan 15, 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.