1,获取完整commit id
git rev-parse HEAD
[root@kace-master framework]
0deff911042ad528ef31787231d6e4ef598cf300
2,获取short commit id
git rev-parse --short HEAD
[root@kace-master framework]
0deff91
3,查看提交记录
[root@kace-master framework]
commit 0deff911042ad528ef31787231d6e4ef598cf300
Merge: 015a089 f484d2c
Author: ****
Date: Fri Sep 3 20:49:35 2021 +0800
Merge branch 'test' into 'master'
Test
See merge request jr/kace/koca-cf!200
commit f484d2c9e7489d386229a3d2258ca29521b9e620
Merge: bcf496b c676700
Author: ****
Date: Fri Sep 3 20:49:05 2021 +0800
Merge branch 'develop' into 'test'
Develop
See merge request jr/kace/koca-cf!19
|