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

Re: why "Not currently on any branch" but no "HEAD detached"?

From
Robert P. J. Day <rpjday@crashcourse.ca>
Date
Mar 30, 2020, 16:39 UTC
Message-ID
<alpine.LFD.2.21.2003301238040.15750@localhost.localdomain>
In-Reply-To
<xmqq8sjhajp2.fsf@gitster.c.googlers.com>
On Mon, 30 Mar 2020, Junio C Hamano wrote:
Show 19 quoted lines
> "Robert P. J. Day" <rpjday@crashcourse.ca> writes:
>
> >   probably a silly question (and probably related to using an old
> > version of git), but on a ubuntu 16.04.6 dev system, i used google's
> > "repo" tool to check out a bunch of git repos, and when i pop into
> > those git repos and run "git status", i see:
> >
> >   # Not currently on any branch
> >   nothing to commit, working tree clean
> >
> > i'm used to seeing "HEAD detached at <something>" ... is the above
> > just an older style of the same message, given that this system uses
> > git 2.9.2? or is there something else going on here?
>
> b397ea48 (status: show more info than "currently not on any branch",
> 2013-03-13) is the culprit.  We used to just say the HEAD was
> detached, but for the past 7 years or so, when we know the last
> branch we were on before detaching, we report the name of the
> branch.
  got it, thanks.
rday
Previous: Junio C Hamano
Message 3 of 3 in “why "Not currently on any branch" but no "HEAD detached"?”
  1. Robert P. J. DayMar 30, 2020
  2. Junio C HamanoMar 30, 2020
  3. Robert P. J. DayMar 30, 2020

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.