How to Rename Tag in GIT?

Connect with

Learn how to rename a tag in git source code repository is very simple and straight forward.

Overview to rename a tag in GIT

On terminal run below command, step by step for Renaming in GIT

Step #1

git checkout TAG_NAME
(EX: git checkout XYZ)

Step #2

##for example: git tag ABC XYZ

here, XYZ is the tag name.

Step #3

git tag -d OLD_TAG_NAME
##for example: git tag -d XYZ

Step #4

git push origin :refs/tags/OLD_TAG_NAME

Step #5

 git push --tags

Connect with

Leave a Comment

Your email address will not be published. Required fields are marked *