Skip to contentSkip to conversation

revert committed and pushed tag

DISCUSSION Hinko Kocevar 2 participants 3 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

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

Signature · 6 lines
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  [email protected]
http    www.cetrtapot.si
#1 lore raw

2009/2/3 Hinko Kocevar <[email protected]>:

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

#2 lore raw
Quoted 8 lines · Matt Pearson

2009/2/3 Hinko Kocevar <[email protected]>:

Quoted 6 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.

Quoted 7 lines

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

Signature · 6 lines
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  [email protected]
http    www.cetrtapot.si