How to output git log with the first line only?

前端 未结 9 1931
猫巷女王i
猫巷女王i 2021-01-29 17:29

I am trying to customize the format for git log. I want all commits to be shown in one line. Each line should only show the first line of the commit message.
I

9条回答
  •  星月不相逢
    2021-01-29 18:05

    If you don't want hashes and just the first lines (subject lines):

    git log --pretty=format:%s
    

提交回复
热议问题