Rename a tag
git-rename-tag <old-tag-name> <new-tag-name>
Rename a tag (locally and remotely)
<old-tag-name>
The name of the tag you want to rename.
<new-tag-name>
The new name of the tag.
$ git tag test $ git push --tags Total 0 (delta 0), reused 0 (delta 0) To [email protected]:myuser/myrepository.git * [new tag] test -> test $ git tag test $ git rename-tag test test2 Deleted tag \'test\' (was 1111111) Total 0 (delta 0), reused 0 (delta 0) To [email protected]:myuser/myrepository.git * [new tag] test2 -> test2 remote: warning: Deleting a non-existent ref. To [email protected]:myuser/myrepository.git - [deleted] refs/tag/test $ git tag test2
Written by Jesus Espino <[email protected]>
<https://github.com/visionmedia/git-extras/issues>
<https://github.com/visionmedia/git-extras>