search commit that contain code example
Example 1: git grep in commits
$ git log --grep=word
Example 2: git search all commits for string
git log -S <whatever> --source --all
$ git log --grep=word
git log -S <whatever> --source --all