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

Re: Ambiguous 'HEAD' issue.

From
Johannes Sixt <j6t@kdbg.org>
Date
Sep 8, 2022, 06:27 UTC
Message-ID
<e6cfc04b-8f53-fb81-ea8b-79e983e46201@kdbg.org>
In-Reply-To
<AM0PR08MB432341F2A27E1133C7A31DEBFD769@AM0PR08MB4323.eurprd08.prod.outlook.com>
Am 29.08.22 um 08:57 schrieb Caglar Akyuz:
> Both 'grep HEAD .git/packed-refs' and 'git for-each-ref | grep HEAD'
> commands return nothing and still 'git status' is complaining about
> ambiguous HEAD.

Are you on a case-insensitive filesystem? Does `find .git -iname head -print` report anything that is not named uppercase HEAD?

-- Hannes
Previous: Jeff King
Message 7 of 7 in “Ambiguous 'HEAD' issue.”
  1. Caglar AkyuzAug 27, 2022
  2. Felipe ContrerasAug 28, 2022
  3. Caglar AkyuzAug 28, 2022
  4. Junio C HamanoAug 29, 2022
  5. Caglar AkyuzAug 29, 2022
  6. Jeff KingSep 8, 2022
  7. Johannes SixtSep 8, 2022

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.