1 min read

Grep your git commit log

Paul Kinlan

Paul Kinlan

Lead of Chrome DevRel

This is more for my reference in the future. But if you want to search you commit history for a specific a term that changed in one of your commits, then you can issue the following command:

git grep your-regex-here $(git rev-list --all)

For example I did git grep "\'load" $(git rev-list --all) to find the commit that had me removing 'load'.

Neat.

Stay in the loop.

I'm trialing a newsletter. Join for monthly insights into web dev, Chrome, and the open web.

alternate_email

Get in touch

Open to chat about Chrome or Web development.

Book a consultation