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:

  • Do you push every single commit?
  • Renamed file, now SVN not allowing me to commit?
  • How can a patchfile created with `git-log -p <filename>` be applied to create all the commits included?
  • Problems with entering Git commit message with Vim
  • What is the effect of git commit without the -a option?
  • Xcode 4.6 won't let me push my project to a git repo
  • git log --author 'Alice|Bob'
    git log --author 'Alice,Bob'

  • File mode with msysgit
  • Images corrupt after git push
  • git: where do the conflict commits go when rebasing
  • Why staging directory is also called Index/Git Index?
  • Where to place Git repository
  • Rails 3 and Heroku: automatically “rake db:migrate” on push?
  • 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.