Create and push an annotated tag in Git

/ Published in: Bash
Save to your folder(s)

This is for creating an annotated tag in Git.

Copy this code and paste it in your HTML
  1. # Create a tag on most current commit
  2. git tag -a v1.0
  4. # Create a tag on a specific commit
  5. git tag -a v1.0 ec78b6b0778a1e02cb9554ce2dca4fcdd7a08a7d
  7. # Push tags to remote repository
  8. git push --tags
  10. # Push specific tag to remote repository
  11. git push origin :tag_name

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.