git command show last commit code example
Example 1: how do i get the last commit
$ git reset --soft HEAD~1
Example 2: command to check recent commit
git log --name-status HEAD^..HEAD
$ git reset --soft HEAD~1
git log --name-status HEAD^..HEAD