Move a remote Git tag

Written in

by

You know, you have scheduled release and in the morning before turnover window find out there is a bug. Quickly – fix it, test it all again and … now what? Release tag is already pushed in remote repository!

I found the answer in Nathan Hoad blog. To make it even more easier for you – I list whole process for moving a tag:

git pull # to marge changes from others
git tag -d v0.99 # delete the tag
git push origin :refs/tags/v0.99 # this remove tag from remote repository
git tag v0.99 # this mark the most recent commit
git push origin v0.99 # push a new tag position to remote repository

BTW if you are sitting on linux system, try commands:

git gui
gitk --all

I found them useful.

Tags

Napsat komentář