How to retrieve the hash for the current commit revision in Git?


git rev-parse HEAD
CODE

또는

git rev-parse --verify HEAD
CODE


Ref