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

The original answer is as follows:

  Describe git - Xact-match - Tags $ (GIT log-N1 - NPTI = '% H')  

There could be a more attractive solution with GIT-FU Confirms ...

git-log reports connected with you started checking went to Czech. Tags (Lightweight or annotated) that matches that match.

$ () The syntax above assumes that you are using bash or similar.


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -