# Tagging ## Goal Create and list tags and share them with remotes. ## Lightweight vs Annotated Tags - Lightweight: just a name pointing at a commit. - Annotated: includes metadata (message, tagger), recommended for releases. ## Create Tags ```bash cd ~/lab-git-essentials/my-first-repo # Lightweight git tag v0.1 # Annotated git tag -a v1.0 -m "First stable release" # List tags git tag -n ``` ## Inspect a Tag ```bash git show v1.0 ``` ## Push Tags to Remote ```bash git push origin v1.0 # push a single tag git push origin --tags # push all tags ``` ## Outcome You can create, view, and push tags for versioning.