grep for content in particular file in git history code example Example: git grep in commits $ git log --grep=word