threads / discuss / 17529

revert committed and pushed tag

Subject: revert committed and pushed tag

## tl;dr

3 messages between Feb 3, 2009 and Feb 5, 2009.

replies: 2people: 2as markdown or json

Hinko Kocevar· Feb 3, 2009, 14:45 UTC · lore
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· Feb 3, 2009, 22:17 UTC · re: Hinko Kocevar · lore

Re: revert committed and pushed tag

2009/2/3 Hinko Kocevar <hinko.kocevar@cetrtapot.si>:
Show 6 quoted lines
> 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· Feb 5, 2009, 08:02 UTC · re: Matt Pearson · lore

Re: revert committed and pushed tag

Matt Pearson wrote:
Show 15 quoted lines
> 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

← back to recent threads