Skip to content

git log

Get only hash value of the latest commit

git log -1 --format="%H"
git rev-parse HEAD