Youngest matching commit revtext text

suggest change
$ git show HEAD^{/fix nasty bug}   # find starting from HEAD
$ git show ':/fix nasty bug'       # find starting from any branch

A colon (’:’), followed by a slash (’/’), followed by a text, names a commit whose commit message matches the specified regular expression. This name returns the youngest matching commit which is reachable from any ref. The regular expression can match any part of the commit message. To match messages starting with a string, one can use e.g. :/^foo. The special sequence :/! is reserved for modifiers to what is matched. :/!-foo performs a negative match, while :/!!foo matches a literal ! character, followed by foo.

<rev>^{/<text>} is the same search, limited to commits reachable from <rev>.

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents