Posted By

jturmel on 07/07/09


Tagged

tags tag git


Versions (?)

Create and push an annotated tag in Git


 / Published in: Bash
 

This is for creating an annotated tag in Git.

  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  

You need to login to post a comment.