git search history for file code example
Example 1: git search history for file
git log --all --full-history -- "**/thefile.*"
Example 2: git grep in commits
$ git log --grep=word
git log --all --full-history -- "**/thefile.*"
$ git log --grep=word