Get the commits made by specific authors (more than one)

If I want to get Alice‘s commits I use git log --author 'Alice'. But what if I want to include there Bob‘s commits as well?

I tried the following:

  • Ignore file in Subversion removes old values from svn:ignore property
  • svn: local commits
  • GIT push not pushing commits to remote
  • git add only modified changes and ignore untracked files
  • Git commit list
  • How to fix GITHUB commit date?
  • git log --author 'Alice|Bob'
    git log --author 'Alice,Bob'

  • PHP Database Deployment git/capistrano
  • git how to find commit hash where branch originated from
  • How can I squash commits between A and K into one commit Z
  • How to transplant branch from one repository to a new one without history?
  • Ignore Git commit during Git p4 submit
  • Ignoring files in git cvsimport
  • One Solution collect form web for “Get the commits made by specific authors (more than one)”

    Try it with the same argument multiple times:

    git log --author 'alice' --author 'bob'

    If Git is compiled with the right flags (USE_LIBPCRE) you can pass the option --perl-regexp so the pattern for search is interpreted as a regular expression:

    git log --perl-regexp --author 'alice|bob' 

    …Found more:
    Git interprets all patterns in the options as regex. Only if you want to use Perl compatible regex you need the option --perl-regexp.
    But if you want to use normal regex, you have to escape the “or”:

    git log --author 'alice\|bob' 
    Git Baby is a git and github fan, let's start git clone.