Tags mark specific commits (often for releases).
- List tags
- git tag
- git tag -n
- Create tags
- git tag v1.0.0 # lightweight
- git tag -a v1.0.0 -m “Release” # annotated
- View tag details
- git show v1.0.0
- Push tags
- git push origin v1.0.0
- git push —tags
Checklist
- You can list and create tags
- You know when to use annotated tags
- You can push tags to a remote