Advertisement
Guest User

Untitled

a guest
Jun 24th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. git show mylabel --pretty=format:"%H" --quiet
  2.  
  3. tag mylabel
  4. Tagger: user <user@x.com>
  5.  
  6. Some comment
  7.  
  8. 446a52cb4aff90d0626b8232aba8c40235c16245
  9.  
  10. git show-ref -s mylabel
  11.  
  12. <rev>^{}, e.g. v0.99.8^{}
  13. A suffix ^ followed by an empty brace pair means the object could be a tag, and dereference the tag recursively until a non-tag object is found.
  14.  
  15. git log <tag or branch> -n 1 --pretty=%H
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement