관리 메뉴

진취적 삶

git reflog 본문

github

git reflog

hp0724 2023. 7. 6. 11:58

git reflog는 로컬 저장소에서 HEAD의 업데이트를 기록을 출력합니다.

업데이트의 내용은 저장소 디렉토리의 .git/logs/refs/heads/.혹은 .git/logs/HEAD 에 기록되며 git reflog는 이 내용을 출력합니다.

git reflog <branch name> 

reflog 에서 커밋 복원하기

git reset --hard <hash>

'github' 카테고리의 다른 글

rebase  (0) 2023.07.06
git tags  (0) 2023.07.06
git alias  (0) 2023.07.06
GIT  (0) 2023.07.06
Branch  (0) 2023.07.06