Last Updated: February 25, 2016
·
600
· brombomb

Last commit hash alias

Have you ever needed to cherry-pick your last commit from one branch to another? Or maybe you just need your last commit hash to look something else up.

git config --global alias.lh 'log -1 --format="%H"'

Now i remember it as git last hash or change the lh to an lc for git last commit