Tags mark specific commits (often for releases).

  1. List tags
  • git tag
  • git tag -n
  1. Create tags
  • git tag v1.0.0 # lightweight
  • git tag -a v1.0.0 -m “Release” # annotated
  1. View tag details
  • git show v1.0.0
  1. 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