git access previous log command code example
Example 1: git log with numbers
git log --oneline | nl
Example 2: git get latest log output to file
git log --oneline -50 > log50_latest_commits.txt
git log --oneline | nl
git log --oneline -50 > log50_latest_commits.txt