Git Tagging (Note)

This post is more of a note for me how to clone a specific tag from git repo branch and the commit/push the changes back. Also I’m adding a new tag for my changes.

Tags are nothing but checkpoints in a branch.

git clone <git repo url>
git checkout tags/v1.0.4 -b <Branch Name> //v1.0.4 is the latest tag on the branch
git describe --tags    //This command will help us to confirm the tag

Now you can make all your changes to the code and once you are done,

git add <Files Updated>
git commit -m "<Summary of changes made>"
git tag -a v1.0.5 -m "<Overall Change Summary>" //Here we have added a new tag for our changes
git push --tags origin <Branch Name>

Leave a comment