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