📜  git rev-parse --short HEAD - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:50:31.251000             🧑  作者: Mango

代码示例1
#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/