git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git tag -a HEAD leads to ambiguous branch name
@ 2024-11-27  0:14 git
  2024-11-27 14:27 ` Jeff King
  0 siblings, 1 reply; 5+ messages in thread
From: git @ 2024-11-27  0:14 UTC (permalink / raw)
  To: git

Good evening,
today I encountered a warning using  git version 2.39.0.windows.2:
/warning: refname 'HEAD' is ambiguous./
It turned out, having written
/git tag -a HEAD -m "Some message."/
was the culprit.
As
/git branch HEAD/
yields the following error
/fatal: 'HEAD' is not a valid branch name/
I wanted to aks, whether a similar check should  be applied to tag names.
Best regards
Johannes Wilde


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-12-02  4:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-27  0:14 git tag -a HEAD leads to ambiguous branch name git
2024-11-27 14:27 ` Jeff King
2024-11-27 23:30   ` Junio C Hamano
2024-12-01 22:44     ` Jeff King
2024-12-02  4:38       ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).