[첫화면으로]Git/Reset

마지막으로 [b]

몇 번을 읽어도, 읽을 때는 정말 쉬운 얘기이고, '그렇지 그렇지' 하면서 읽는데, 창을 닫고 혼자 정리하려면 영 헷갈리는 내용 -ㅅ-;

이 그림은 찾아보기 쉽도록 위 글에서 캡춰:
Upload:git_reset_checkout_cheat.png

reset과 checkout의 차이를 보여주는 그림. 역시 위 글에서 가져옴:
Upload:reset-checkout.png

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.

1. 참고

/복구 - 잘못된 리셋으로 날아간 데이터를 복구하는 것에 관한 이야기

2. Comments

이름:  
Homepage:
내용:
 


기타분류

마지막 편집일: 2014-2-20 4:00 am (변경사항 [d])
1361 hits | Permalink | 변경내역 보기 [h] | 페이지 소스 보기