git log : code example
Example 1: git log one line
git log --oneline
Example 2: git get latest log output to file
git log --oneline -50 > log50_latest_commits.txt
git log --oneline
git log --oneline -50 > log50_latest_commits.txt