How To List All Tags With The Message In git

1 2 |
git tag -n git tag -n3 |
![]() |
For more information about Tagging in GIT, please visit: https://git-scm.com/book/en/v2/Git-Basics-Tagging Add an Annotated Tag:
1 2 |
git tag -a v1.0.0 -m "Software version 1.0.0" git show v1.0.0 |
Add a Lightweight Tag:
1 2 |
git tag v1.0.1 git show v1.0.1 |
Show all tags:
1 |
git tag |
Push all tags:
1 |
git push origin --tags |
Add a Tag Later:
1 2 3 4 5 6 7 8 9 10 11 12 |
git log --pretty=oneline git tag v1.0.2 5370c8da4095fefad7476fa1c226a309dd00a9f7 git tag -a v1.0.2 5370c8da4095fefad7476fa1c226a309dd00a9f7 fatal: tag 'v1.0.2' already exists git tag -d v1.0.2 Deleted tag 'v1.0.2' (was 5370c8d) git tag -a v1.0.2 5370c8da4095fefad7476fa1c226a309dd00a9f7 git push origin --tags |
Use a Tag:
1 2 |
git checkout -b {new branch name} {tag name} git checkout -b v1.0.2-from-tag v1.0.2 |