This is a useful command combo if you need to search your git commit history for a keyword then view the resulting file.

 git grep [regexp] $(git rev-list --all)
 git show REVISION:path/to/file

The first command does a search, based on the supplied regexp and returns a list of matching files and revision numbers. You can then used the revision/file to show the file at that point using the second command.