最佳答案
我需要帮助。只显示一个提交 ID 是可能的吗?由于 git log -3显示来自1-3的日志,所以我只想显示3。什么可能的命令将匹配它?
我用这个命令
git log -3 --pretty=format:"%h"
结果就是
ffbef87
cf0e073
1c76c5d
我只想显示 1c76c5d。