git log to file code example
Example 1: git log for specific file
git log -p filename
Example 2: git get latest log output to file
git log --oneline -50 > log50_latest_commits.txt
git log -p filename
git log --oneline -50 > log50_latest_commits.txt