Search Entire Git Revision History

25 Mar 2011
This is a useful little snippet that searches your entire git revision history for a string of text:
git rev-list --all | (
while read revision; do
git grep -F 'searching_for_this_string' $revision
done
)

Let's talk

I'm one of the founders of Venmo. If you liked this essay/experiment -- or didn't -- @ me.