Posted By

jturmel on 07/07/09


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
  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  

You need to login to post a comment.