threads / discuss / 11891

git-tag HEAD

Subject: git-tag HEAD

## tl;dr

4 messages between Feb 5, 2008 and Feb 7, 2008.

replies: 3people: 3as markdown or json

Ramagudi Naziir· Feb 5, 2008, 04:24 UTC · lore
Hello everyone,
I accidently executed the command "git-tag HEAD" in one of my git repositories.
Now every command I invoke, i.e. "git-log", begins with the warning:
"warning: refname 'HEAD' is ambiguous"
How can I fix this situation ? can I undo what I did ?

Thank you all in advance, Naziir

Sean· Feb 5, 2008, 04:30 UTC · re: Ramagudi Naziir · lore

Re: git-tag HEAD

On Tue, 5 Feb 2008 06:24:00 +0200 "Ramagudi Naziir" <naziirr@gmail.com> wrote:

Show 8 quoted lines
> I accidently executed the command "git-tag HEAD" in one of my git repositories.
> 
> Now every command I invoke, i.e. "git-log", begins with the warning:
> 
> "warning: refname 'HEAD' is ambiguous"
> 
> How can I fix this situation ? can I undo what I did ?
> 
Just delete the tag...
$ git tag -d HEAD

HTH, Sean

Ramagudi Naziir· Feb 5, 2008, 05:12 UTC · re: Sean · lore

Re: git-tag HEAD

On Feb 5, 2008 6:30 AM, Sean <seanlkml@sympatico.ca> wrote:
Show 7 quoted lines
> On Tue, 5 Feb 2008 06:24:00 +0200
> "Ramagudi Naziir" <naziirr@gmail.com> wrote:
>
>
> > I accidently executed the command "git-tag HEAD" in one of my git repositories.
>
> $ git tag -d HEAD
Is it exactly the same as "rm .git/refs/tags/HEAD" ?
Thank you Sean.
Show 5 quoted lines
>
> HTH,
> Sean
>
>
Miklos Vajna· Feb 7, 2008, 12:13 UTC · re: Ramagudi Naziir · lore

Re: git-tag HEAD

On Tue, Feb 05, 2008 at 07:12:39AM +0200, Ramagudi Naziir <naziirr@gmail.com> wrote:
> > $ git tag -d HEAD
> 
> Is it exactly the same as "rm .git/refs/tags/HEAD" ?

nope, as that won't create a reflog entry and won't work with packed refs. at least i think so :)

- VMiklos

← back to recent threads