git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-tag HEAD
@ 2008-02-05  4:24 Ramagudi Naziir
  2008-02-05  4:30 ` Sean
  0 siblings, 1 reply; 4+ messages in thread
From: Ramagudi Naziir @ 2008-02-05  4:24 UTC (permalink / raw)
  To: git

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

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

* Re: git-tag HEAD
  2008-02-05  4:24 git-tag HEAD Ramagudi Naziir
@ 2008-02-05  4:30 ` Sean
  2008-02-05  5:12   ` Ramagudi Naziir
  0 siblings, 1 reply; 4+ messages in thread
From: Sean @ 2008-02-05  4:30 UTC (permalink / raw)
  To: Ramagudi Naziir; +Cc: git

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

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

* Re: git-tag HEAD
  2008-02-05  4:30 ` Sean
@ 2008-02-05  5:12   ` Ramagudi Naziir
  2008-02-07 12:13     ` Miklos Vajna
  0 siblings, 1 reply; 4+ messages in thread
From: Ramagudi Naziir @ 2008-02-05  5:12 UTC (permalink / raw)
  To: Sean; +Cc: git

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

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

* Re: git-tag HEAD
  2008-02-05  5:12   ` Ramagudi Naziir
@ 2008-02-07 12:13     ` Miklos Vajna
  0 siblings, 0 replies; 4+ messages in thread
From: Miklos Vajna @ 2008-02-07 12:13 UTC (permalink / raw)
  To: Ramagudi Naziir; +Cc: Sean, git

[-- Attachment #1: Type: text/plain, Size: 284 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

end of thread, other threads:[~2008-02-07 12:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-05  4:24 git-tag HEAD Ramagudi Naziir
2008-02-05  4:30 ` Sean
2008-02-05  5:12   ` Ramagudi Naziir
2008-02-07 12:13     ` Miklos Vajna

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).