진취적 삶
git reflog 본문
git reflog
는 로컬 저장소에서 HEAD의 업데이트를 기록을 출력합니다.
업데이트의 내용은 저장소 디렉토리의 .git/logs/refs/heads/.
혹은 .git/logs/HEAD
에 기록되며 git reflog는 이 내용을 출력합니다.
git reflog <branch name>
reflog 에서 커밋 복원하기
git reset --hard <hash>
git reflog
는 로컬 저장소에서 HEAD의 업데이트를 기록을 출력합니다.
업데이트의 내용은 저장소 디렉토리의 .git/logs/refs/heads/.
혹은 .git/logs/HEAD
에 기록되며 git reflog는 이 내용을 출력합니다.
git reflog <branch name>
reflog 에서 커밋 복원하기
git reset --hard <hash>