1 개요[ | ]
- how to get the last commit ID
- how to get the last commit hash
- git 최신 커밋 해시 얻기
2 전체[ | ]
Console
Copy
root@zetawiki:~# git log -1
commit fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
Author: jmnote <testuser@example.com>
Date: Sun Sep 4 23:09:43 2016 +0900
hello world!
Console
Copy
root@zetawiki:~# git log -1 --format="%H"
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
Console
Copy
root@zetawiki:~# git rev-parse --verify HEAD
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
Console
Copy
root@zetawiki:~# git rev-parse HEAD
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
3 단축 7자리[ | ]
Console
Copy
root@zetawiki:~# git log -1 --format="%h"
fb48e19
4 같이 보기[ | ]
5 참고[ | ]
편집자 Jmnote Jmnote bot
로그인하시면 댓글을 쓸 수 있습니다.