Grep your git commit log

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.

Paul Kinlan

Trying to make the web and developers better.

RSS Github Medium