equivalence of: git log --exclude-author?

前端 未结 3 2080
时光说笑
时光说笑 2020-12-13 17:28

At work we have a git repo where the majority of all commits are automated commits by a bot user. There are times when I prefer to view a git log from that repo, but without

3条回答
  •  遥遥无期
    2020-12-13 18:00

    From https://coderwall.com/p/tzdzwa :

    git log --perl-regexp --author='^((?!excluded-author-regex).*)$'
    

    This worked for me.

    If you don't want to specify --perl-regexp every time you can do:

    git config --global grep.patternType perl
    

提交回复
热议问题