checkout - Show which git tag you are on? -
I have to find out which tag is currently checked out.
When I do:
git checkout tag 1 GIT branch I can not know which tag I am on It logs only:
* (not branch) Master Is it possible to find out which tag has been checked? In the above example, this would be tag1 .
edit : Jakub Narębski has more git-fu in the following very easy The command works perfectly:
Description of git - tag (or The original answer is as follows: There could be a more attractive solution with GIT-FU Confirms ... - tag without
Describe git - Xact-match - Tags $ (GIT log-N1 - NPTI = '% H') $ () The syntax above assumes that you are using bash or similar.
Comments
Post a Comment