If you want to search through your git commit history for a particular text, do the following:
git rev-list --all | xargs git grep -F 'YOUR_SEARCH_STRING'
-F
next to the grep
command is for fixed strings since that is what we are using and not regular expressions.