/
git 현재 리비전 알아내기

git 현재 리비전 알아내기

How to retrieve the hash for the current commit revision in Git?


git rev-parse HEAD

또는

git rev-parse --verify HEAD


Ref

Related content

깃 마지막 커밋 메시지(git commit message) 수정하기
깃 마지막 커밋 메시지(git commit message) 수정하기
More like this
squash commit already pushed
squash commit already pushed
More like this
How to discard local commits in git - “Your branch is ahead of 'repo/branch' by N commits”?
How to discard local commits in git - “Your branch is ahead of 'repo/branch' by N commits”?
More like this
git 파일이나 폴더 이름 변경 (git rename file or folder)
git 파일이나 폴더 이름 변경 (git rename file or folder)
More like this
이미 커밋된 파일을 ignore 하기
이미 커밋된 파일을 ignore 하기
More like this
git fetch vs pull
git fetch vs pull
More like this