GIT-RENAME-TAG(1)
β¨ NAME β¨
git-rename-tag β bestie, it renames a tag π
(this one lives in the Git Extras collection, just so you know where to find it)
π¦ SYNOPSIS π¦
git-rename-tag <old-tag-name> <new-tag-name>
π DESCRIPTION π
Rename a tag. That's it. That's the whole vibe. β¨
Oh and also β it does it locally and remotely, so no awkward "wait why is only my laptop aware of this" moment. It's giving thorough. π«Ά
πΈ OPTIONS πΈ
<old-tag-name>β the name of the tag you want to rename. Like, the one it is right now. The before pic. πΈ<new-tag-name>β the new name of the tag. The glow-up name. The after pic. π
π EXAMPLES π
Okay so here's the whole saga, start to finish, no cuts πΏ
Making a tag and yeeting it to the remote:
$ git tag test
$ git push --tags
Total 0 (delta 0), reused 0 (delta 0)
To git@myserver.com:myuser/myrepository.git
* [new tag] test -> test
$ git tag
test
Now the rename itself. Watch it delete the old one and pop the new one into existence, iconically:
$ git rename-tag test test2
Deleted tag 'test' (was 1111111)
Total 0 (delta 0), reused 0 (delta 0)
To git@myserver.com:myuser/myrepository.git
* [new tag] test2 -> test2
remote: warning: Deleting a non-existent ref.
To git@myserver.com:myuser/myrepository.git
- [deleted] refs/tag/test
And the grand finale β look at the tag list now:
$ git tag
test2
Not the remote: warning: Deleting a non-existent ref. line just casually showing up mid-glow-up π it's in the example exactly like that, no cap, we do not edit the lore.
π§ AUTHOR π§
Written by JesΓΊs Espino <jespinog@gmail.com> π
π REPORTING BUGS π
Found something cursed? Tell the humans here: <https://github.com/tj/git-extras/issues> π
π SEE ALSO π
<https://github.com/tj/git-extras> β go look, it's lowkey a whole ecosystem πΈ
okay bestie that's the whole page, you're officially tag-renaming literate, main character energy achieved π this was GIT-RENAME-TAG(1) from the Git Extras manual, dated May 2026 β go forth and rename responsibly, mwah π
π¦ where this page comes from
- ubuntu stonking: git-extras 7.5.0-1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms