# revert committed and pushed tag

3 messages from 2009-02-03 to 2009-02-05. Participants: Hinko Kocevar, Matt Pearson.
Thread: https://gitlist.dev/t/17529

## Hinko Kocevar, 2009-02-03 14:45

Subject: revert committed and pushed tag
Message-ID: <4988586D.603@cetrtapot.si>
URL: https://gitlist.dev/e/4988586D.603%40cetrtapot.si

```
Hi,

Is there a way to 'revert' committed and pushed tag?
I've noticed that some files were not included in the commit (new files)
and I would like to squeeze them in before the tag was
created/committed/pushed to the remote server.

I did:
$ git add ..files..
$ git commit
$ git push
$ git tag rc3
$ git push --tags

Thank you,
Hinko
-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel     ++386 (0) 4 280 66 03
e-mail  hinko.kocevar@cetrtapot.si
http    www.cetrtapot.si

```

## Matt Pearson, 2009-02-03 22:17

Subject: Re: revert committed and pushed tag
Message-ID: <706b4240902031417p1a98f3fdtb2240ea5ae5b31a5@mail.gmail.com>
URL: https://gitlist.dev/e/706b4240902031417p1a98f3fdtb2240ea5ae5b31a5%40mail.gmail.com
In-Reply-To: <4988586D.603@cetrtapot.si>

```
2009/2/3 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
> Hi,
>
> Is there a way to 'revert' committed and pushed tag?
> I've noticed that some files were not included in the commit (new files)
> and I would like to squeeze them in before the tag was
> created/committed/pushed to the remote server.

You do it the same way you delete a branch (see git-push(1)):
git push origin :refs/tags/rc3

Note that anybody that has fetched from your public repository will
_not_ have their current 'rc3' tag overwritten with the new version
without them deleting it first and letting fetch recreate it.

Matt

```

## Hinko Kocevar, 2009-02-05 08:02

Subject: Re: revert committed and pushed tag
Message-ID: <498A9D19.7070902@cetrtapot.si>
URL: https://gitlist.dev/e/498A9D19.7070902%40cetrtapot.si
In-Reply-To: <706b4240902031417p1a98f3fdtb2240ea5ae5b31a5@mail.gmail.com>

```
Matt Pearson wrote:
> 2009/2/3 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
>> Hi,
>>
>> Is there a way to 'revert' committed and pushed tag?
>> I've noticed that some files were not included in the commit (new files)
>> and I would like to squeeze them in before the tag was
>> created/committed/pushed to the remote server.
> 
> You do it the same way you delete a branch (see git-push(1)):
> git push origin :refs/tags/rc3
> 
> Note that anybody that has fetched from your public repository will
> _not_ have their current 'rc3' tag overwritten with the new version
> without them deleting it first and letting fetch recreate it.
> 

Thank you, that worked just the way I wanted!

Regards,
Hinko

-- 
Hinko Kočevar, OSS developer
ČETRTA POT, d.o.o.
Planina 3, 4000 Kranj, SI EU
tel     ++386 (0) 4 280 66 03
e-mail  hinko.kocevar@cetrtapot.si
http    www.cetrtapot.si

```
