Git stash의 apply와 pop
커밋하기 애매한 변경이 남은 상태에서 브랜치를 바꾸면 Git이 막는다. $ git checkout develop error: Your local changes to the following files would be overwritten by checkout: file.txt Please commit your changes or stash them before you switch branches. Aborting git stash는 작업 디렉터리의 변경을 임시 스택에 저장하고 디렉터리를 HEAD 상태로 되돌린다. 변경은 사라지지 않으며 나중에 다시 꺼내 적용할 수 있다. 명령 자체는 단순하지만 apply와 pop의 동작 차이, 그중에서도 pop이 충돌했을 때의 동작에서 실수가 자주 나온다. ...