Last Updated: February 25, 2016·
git log that excludes an author
This uses the advanced "negative lookahead" feature available in PCRE, perl-based regex functionality. Your version of grep must support PCRE, so you'll need to check the way your vendor builds it. There are tips out there for how to rebuild or get other versions if needed.
$ git config --global grep.patternType perl $ git log --author='^((?!pattern).*)$'
Written by Paul Frields
Lookahead and Lookbehind regex
Searchable RegEx Cheat Sheet
Have a fresh tip? Share with Coderwall community!
Post a tip
Best #Regex Authors
Sponsored by #native_company# — Learn More