Print commit message of a given commit in git

后端 未结 6 1947
爱一瞬间的悲伤
爱一瞬间的悲伤 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

    git show is more a plumbing command than git log, and has the same formatting options:

    git show -s --format=%B SHA1
    

提交回复
热议问题