From: W. Trevor King Date: Fri, 1 Jun 2012 17:19:02 +0000 (-0400) Subject: Mention `git describe` in my Git notes. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9c3d13fd60e149d05740bb9f97edd0f0ca7a5a5d;p=blog.git Mention `git describe` in my Git notes. --- diff --git a/posts/Git/notes.org b/posts/Git/notes.org index d9dd589..73fee98 100644 --- a/posts/Git/notes.org +++ b/posts/Git/notes.org @@ -794,7 +794,11 @@ previous commit : 33db5f4d9027a10e477ccf054b2c1ab94f74c85a tags/v0.99~940 Now you are wiser, because you know that it happened 940 revisions -before v0.99. +before v0.99. A similar command is =git describe=, which finds the +latest tag in a commit's history and uses that to construct a name: + + : $ git describe v1.0.5^2 + : tags/v1.0.0-21-g975b31d ** List unmerged commits