Print commit message of a given commit in git

后端 未结 6 1946
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-27 10:10

I need a plumbing command to print the commit message of one given commit - nothing more, nothing less.

6条回答
  •  情书的邮戳
    2020-11-27 10:52

    I started to use

    git show-branch --no-name 
    

    It seems to be faster than

    git show -s --format=%s 
    

    Both give the same result

提交回复
热议问题