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

Ambiguous 'HEAD' issue.

From
CACaglar Akyuz <caglar.akyuz@sparsetechnology.com>
Date
Aug 27, 2022, 20:42 UTC
Message-ID
<AM0PR08MB4323160241D4341FB1B99CC2FD749@AM0PR08MB4323.eurprd08.prod.outlook.com>
Hello,
Recently I changed one of my repo's origin URL from gitlab to github.  After this switch, I start getting:
  warning: refname 'HEAD' is ambiguous.
messages when I use 'git status'. I check various things if I have tags/branches to blame but cannot find anything:
* git show-ref | grep -i head -> nothing suspicious
* find . -name HEAD | grep -v modules -> only .git/logs/HEAD and .git/HEAD
* git branch -a | grep HEAD -> nothing
Do you have any suggestions for a possible fix to this?

Thanks, Caglar

Next: Felipe Contreras
Message 1 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.