diff --git a/README.md b/README.md index 24a4ebe..6c76c23 100644 --- a/README.md +++ b/README.md @@ -152,6 +152,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`. * [Preformatted patch file.](#preformatted-patch-file) * [Get the repo name.](#get-the-repo-name) * [logs between date range](#logs-between-date-range) +* [Exclude author from logs](#exclude-author-from-logs) @@ -1038,5 +1039,11 @@ git rev-parse --show-toplevel git log --since='FEB 1 2017' --until='FEB 14 2017' ``` +## Exclude author from logs +```sh +git log --perl-regexp --author='^((?!excluded-author-regex).*) + +``` + diff --git a/tips.json b/tips.json index 2daf36a..d27af25 100644 --- a/tips.json +++ b/tips.json @@ -446,4 +446,7 @@ }, { "title": "logs between date range", "tip": "git log --since='FEB 1 2017' --until='FEB 14 2017'" +}, { + "title": "Exclude author from logs", + "tip": "git log --perl-regexp --author='^((?!excluded-author-regex).*)$'" }] \ No newline at end of file