Q) How to retrieve the hash for the current commit in Git?

A)

If you want to see the hash, simple enter the following in your CLI:

$ git show

or

$ git show HEAD