-
-
Save Constaline/03b37fb6c761afba6af1e5cdd3f24af2 to your computer and use it in GitHub Desktop.
Revisions
-
rponte revised this gist
Sep 10, 2015 . 1 changed file with 0 additions and 2 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,3 @@ # The command finds the most recent tag that is reachable from a commit. # If the tag points to the commit, then only the tag is shown. # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object -
rponte revised this gist
Sep 10, 2015 . 1 changed file with 0 additions and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -4,7 +4,6 @@ [email protected] # If the tag points to the commit, then only the tag is shown. # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object # and the abbreviated object name of the most recent commit. git describe # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: -
rponte created this gist
Sep 10, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ [email protected] # The command finds the most recent tag that is reachable from a commit. # If the tag points to the commit, then only the tag is shown. # Otherwise, it suffixes the tag name with the number of additional commits on top of the tagged object # and the abbreviated object name of the most recent commit. git describe # With --abbrev set to 0, the command can be used to find the closest tagname without any suffix: git describe --abbrev=0 # other examples git describe --abbrev=0 --tags # gets tag from current branch git describe --tags `git rev-list --tags --max-count=1` # gets tags across all branches, not just the current branch