- 获取完整commit id(如:bb4f92a7d4cbafb67d259edea5a1fa2dd6b4cc7a)
git rev-parse HEAD
- 获取short commit id(如:bb4f92a)
git rev-parse --short HEAD
git rev-parse HEAD
git rev-parse --short HEAD
本文标题:git获取commit id
本文链接:https://www.haomeiwen.com/subject/yrbdrftx.html
网友评论