Created
September 20, 2019 21:39
-
-
Save mattolenik/48056a1c47cae2ab8a5dfa0e9c0b6fcb to your computer and use it in GitHub Desktop.
Retrieve tag/branch/commit
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
git describe --tags --exact-match 2> /dev/null \ | |
|| git symbolic-ref -q --short HEAD \ | |
|| git rev-parse --short HEAD |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment