如何通过提交消息标题中的文本/单词来引用 git 提交?
我想避免:
git log
引用与
<text>
匹配的最新提交:
:/<text>, e.g. :/fix nasty bug
引用与
<rev>
匹配的
<text>
可到达的最新提交
<rev>^{/<text>}, e.g. HEAD^{/fix nasty bug}
man gitrevisions
说:
参考从
<rev>
匹配的最新提交:<text>
引用与
<rev>^{/<text>}, e.g. HEAD^{/fix nasty bug}
A suffix ^ to a revision parameter, followed by a brace pair that
contains a text led by a slash, is the same as the :/fix nasty bug
syntax below except that it returns the youngest matching commit
which is reachable from the <rev> before ^.
匹配的最新提交:
<text>