how to get more log in git code example Example 1: git log with numbers git log --oneline | nl Example 2: git log one line git log --oneline