#It helps you to find out the commit ID of the current HEAD git rev-parse HEAD #OR if you want the shorter commit git rev-parse --short HEAD #If you find the latest commit of another branch, you can do git rev-parse git rev-parse origin/