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
Written by Rob W
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#