카테고리 없음
[git] git push --force 강제 push로 유실된 커밋 되돌리기
디스코비스킷
2024. 2. 20. 23:34
반응형
git reflog
로 X되기 이전의 커밋 hash 찾기git checkout {commitHash}
git branch {your-branch}
인데 나는 마스터므로,git branch master
안되면git branch master -f
git checkout master
master 브랜치로 이동git push origin master
프로젝트에 유실된 디렉토리와 커밋들이 다시 보이는것을 확인할 수있었다...
반응형