Grep your git commit log

Paul Kinlan
Available in: Deutsch Español Français 日本語 मानक हिन्दी русский язык tiếng Việt bahasa Indonesia

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’.


Paul Kinlan

Trying to make the web and developers better.

RSS Github Medium