git open history for particular file code example
Example 1: git search history for file
git log --all --full-history -- "**/thefile.*"
Example 2: git file history
git log --follow -p -- path-to-file
git log --all --full-history -- "**/thefile.*"
git log --follow -p -- path-to-file