Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 374 Bytes

search-historical-commit-diffs.md

File metadata and controls

10 lines (7 loc) · 374 Bytes

Search historical commit diffs

To lookup commits whose diff matches a regular expression, use the -G flag with git log.

git log -G "myRegex"

You can use other flags, also, to format the results. Notably, -p will show you the diff.

See the official documentation for the G flag.