how to find the hash of current commit in git code example Example: git get current commit hash git rev-parse HEAD