From: git@jowil.de Date: Wed, 27 Nov 2024 00:14:23 GMT Subject: git tag -a HEAD leads to ambiguous branch name Message-ID: <47cdf937-6192-4c83-a0e5-700e98f36c1e@jowil.de> 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