It is related to Making git show to show information in a machine parseable format but I am getting tired of the fact that I now have to do a lot of parsing to get the commi
git log -1 --pretty=%H
-1: tells it to only print 1 commit
-1
--pretty=%H: tells it to only print the full hash
--pretty=%H