how to know the previous commits in git code example Example: command to check recent commit git log --name-status HEAD^..HEAD