Print commit message of a given commit in git

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

    This will give you a very compact list of all messages for any specified time.

    git log --since=1/11/2011 --until=28/11/2011 --no-merges --format=%B > CHANGELOG.TXT
    

提交回复
热议问题