git rev-parse --short HEAD

Get the latest commit id or sha brief results

➜  cinder git:(stable/stein) git rev-parse HEAD  
0996f0ac76188c324831f19089bdd87b9c364cb6
➜  cinder git:(stable/stein) git rev-parse --short HEAD
0996f0ac7

 

Guess you like

Origin www.cnblogs.com/longchang/p/11388876.html