git command to check current commit code example
Example 1: git get current commit
git rev-parse HEAD
Example 2: command to check recent commit
git log --name-status HEAD^..HEAD
git rev-parse HEAD
git log --name-status HEAD^..HEAD