local git commit history code example Example 1: git log one line git log --oneline Example 2: to see all after commit in local repository in git git log --name-only