Generate the git history for a given file