grep git the last commit hash Posted on May 1, 2013 by freegnu git log -n1|head -n1|grep -o '[[:xdigit:]]\{7,\}'