To search through all branches and all history of a git repo to find commits that contained a string, use:
git log --full-history --all -S "search term"
To search through all branches and all history of a git repo to find commits that contained a string, use:
git log --full-history --all -S "search term"