git command to get last commit code example
Example 1: git cancel 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