Home

Git Tags - Complete guide to use tags with GIT CLI

Annotated tag

To add an annotated tag, use the command:

git tag -a <tag_name> -m "<tag_message>"

For e.g., you can do git tag -a v1.0.0 -m "initial release - mvp"

To add an annotated tag for an old commit, use the command:

git tag -a <tag_name> -m "<tag_message>" <commit-hash>

To push the annotated tag to the remote repo, run the following command:

git push --tags


Last Updated on

Next Post: GraphProtocol: TS2322 null assignment in Subgraph →

Comments