몇 번을 읽어도, 읽을 때는 정말 쉬운 얘기이고, '그렇지 그렇지' 하면서 읽는데, 창을 닫고 혼자 정리하려면 영 헷갈리는 내용 -ㅅ-;
이 그림은 찾아보기 쉽도록 위 글에서 캡춰:
reset과 checkout의 차이를 보여주는 그림. 역시 위 글에서 가져옴:
reset --soft
는 [Practical uses of git reset --soft? - Stack Overflow]에 있는 리플 참조.
So, each time: you are satisfied with what you end up with (in term of working tree and index) you are not satisfied with all the commits that took you to get there: git reset --soft is the answer.
/복구 - 잘못된 리셋으로 날아간 데이터를 복구하는 것에 관한 이야기