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
  3.  
  4. # Create a tag on a specific commit
  5. git tag -a v1.0 ec78b6b0778a1e02cb9554ce2dca4fcdd7a08a7d
  6.  
  7. # Push tags to remote repository
  8. git push --tags
  9.  
  10. # Push specific tag to remote repository
  11. git push origin :tag_name

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.