Move a git tag

Submitted by Erik Wegner on
Body

If you have to move a git tag, these are the steps:

  1. Delete the tag on any remote before you push
    git push origin :refs/tags/<tagname>

  2. Replace the tag to reference the most recent commit
    git tag -fa <tagname>

  3. Push the tag to the remote origin
    git push origin --tags

Found at: https://stackoverflow.com/a/8044605

Categories

Git

The famous decentralized version control.

Version control

Every developer needs a time travel machine.