How to output git log with the first line only?

前端 未结 9 1828
猫巷女王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:07

    if you want to always use git log in such way you could add git alias by

    git config --global alias.log log --oneline

    after that git log will print what normally would be printed by git log --oneline

提交回复
热议问题