# git-tag HEAD

4 messages from 2008-02-05 to 2008-02-07. Participants: Ramagudi Naziir, Sean, Miklos Vajna.
Thread: https://gitlist.dev/t/11891

## Ramagudi Naziir, 2008-02-05 04:24

Subject: git-tag HEAD
Message-ID: <dfb262380802042024p49bfb0c3v689946dba350ac01@mail.gmail.com>
URL: https://gitlist.dev/e/dfb262380802042024p49bfb0c3v689946dba350ac01%40mail.gmail.com

```
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, 2008-02-05 04:30

Subject: Re: git-tag HEAD
Message-ID: <BAYC1-PASMTP15D0374A5A075B79E17284AE2C0@CEZ.ICE>
URL: https://gitlist.dev/e/BAYC1-PASMTP15D0374A5A075B79E17284AE2C0%40CEZ.ICE
In-Reply-To: <dfb262380802042024p49bfb0c3v689946dba350ac01@mail.gmail.com>

```
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.
> 
> 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, 2008-02-05 05:12

Subject: Re: git-tag HEAD
Message-ID: <dfb262380802042112s324cc7dfx452a540e6bc54473@mail.gmail.com>
URL: https://gitlist.dev/e/dfb262380802042112s324cc7dfx452a540e6bc54473%40mail.gmail.com
In-Reply-To: <BAYC1-PASMTP15D0374A5A075B79E17284AE2C0@CEZ.ICE>

```
On Feb 5, 2008 6:30 AM, Sean <seanlkml@sympatico.ca> wrote:
> 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.

>
> HTH,
> Sean
>
>

```

## Miklos Vajna, 2008-02-07 12:13

Subject: Re: git-tag HEAD
Message-ID: <20080207121324.GL25954@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080207121324.GL25954%40genesis.frugalware.org
In-Reply-To: <dfb262380802042112s324cc7dfx452a540e6bc54473@mail.gmail.com>

```
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

```
