View git log without merge commits

前端 未结 2 1338
别跟我提以往
别跟我提以往 2021-01-31 06:46

I\'m trying to view commits made by a specific user, and want to remove any merges done by the user from the output. How can I do so?

I can check for the commits of a u

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 07:39

    You can omit merges with --no-merges:

    git log --no-merges --author=
    

    See the git log manpage for details.

提交回复
热议问题