How to filter Git log by author
Filtering Git log by author helps track specific developer contributions and analyze commit patterns for code reviews and project management.
As the creator of CoreUI with 25 years of development experience, I’ve used author filtering extensively for code reviews and team collaboration tracking.
The most effective approach uses the --author flag with git log, supporting both exact matches and regex patterns.
This method provides precise commit history analysis for individual contributors.
Use git log --author to filter commits by specific author name or email pattern.
git log --author="John Doe"
git log --author="[email protected]"
git log --author="John" --oneline
git log --author="John\|Jane" --since="2 weeks ago"
The --author flag accepts partial name matches, full names, or email addresses to filter commits. You can combine it with other flags like --oneline for concise output or --since for time-based filtering. Use pipe characters (\|) to match multiple authors in a single command, and regex patterns for flexible author matching.
Best Practice Note:
This is the same commit tracking approach we use in CoreUI development for monitoring team contributions and code review processes.
Combine author filtering with --stat or --shortstat flags to see code change statistics for specific developers.



