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

[BUG?] HEAD detached at HEAD

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 18, 2015, 16:59 UTC
Message-ID
<vpqk2rnirz0.fsf@anie.imag.fr>
Hi,
I did a "git checkout --detached", and now I get:
$ git status           
HEAD detached at HEAD
nothing to commit, working directory clean
$ git branch
* (HEAD detached at HEAD)
  master

The "HEAD detached at HEAD" is not very helpful. I thought there was an abbreved sha1 here before, but I'm getting the same with latest Git in master and Git 2.0, so it doesn't seem to be new.

I'm getting it even if there's a tag and/or a branch pointing to the same commit.

Any idea what's going on?
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Next: Jacob Keller
Message 1 of 9 in “[BUG?] HEAD detached at HEAD”
  1. Matthieu MoySep 18, 2015
  2. Jacob KellerSep 18, 2015
  3. Matthieu MoySep 18, 2015
  4. Stefan BellerSep 18, 2015
  5. Matthieu MoySep 18, 2015
  6. Michael J GruberSep 21, 2015
  7. Michael J GruberSep 21, 2015
  8. Matthieu MoySep 21, 2015
  9. Junio C HamanoSep 21, 2015

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.