Git 최신 커밋 해시 확인

1 개요[ | ]

how to get the last commit ID
how to get the last commit hash
git 최신 커밋 해시 얻기

2 전체[ | ]

root@zetawiki:~# git log -1
commit fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
Author: jmnote <testuser@example.com>
Date:   Sun Sep 4 23:09:43 2016 +0900

    hello world!
root@zetawiki:~# git log -1 --format="%H"
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
root@zetawiki:~# git rev-parse --verify HEAD
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904
root@zetawiki:~# git rev-parse HEAD
fb48e19a31bc9ebae1a8626a5ba8e6844eccb904

3 단축 7자리[ | ]

root@zetawiki:~# git log -1 --format="%h"
fb48e19

4 같이 보기[ | ]

5 참고[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}