git 명령어
-
git log에 최신 커밋이 안 보일 때 복원하기Git 2024. 1. 4. 21:20
Git 작업을 하다가 잘못된 명령어 조작으로 한참 뒤의 commit으로 돌아가 HEAD로 위치하게 되었고 git log로 살펴보니 돌아가버린 commit 시점으로부터 앞의 commit들(원래 HEAD가 위치했던)이 보이지 않아 당황했다... 돌아가고 싶은 commitID만 알면 되는데... 그 commit들이 git log를 통해 보이질 않으니 순간 블랙 아웃 그렇게 폭풍 구글링을 하다가 나를 구원해줄 블로그를 찾았다. https://www.letmecompile.com/git-restore-lost-commits/ 깃(Git) 에서 유실된 커밋(commit) 복원하기 깃(Git)을 이용하여 작업을 하다가 리베이스(rebase) 실수 또는 잘못된 명령어나 조작 실수 등 다양한 이유로 인해 자신의 피땀눈물..