Created
December 21, 2013 17:41
-
-
Save gMagicScott/8072464 to your computer and use it in GitHub Desktop.
Is current Git Checkout a tag?
Solution via http://stackoverflow.com/questions/1593188/how-to-programmatically-determine-whether-the-git-checkout-is-a-tag-and-if-so-w
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Only *annotated* tags | |
git describe --exact-match HEAD | |
# All tags, including lightweight | |
git describe --exact-match --tags HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clickable link to the Stack Overflow question