프로그래밍/Git 사용법
Git Stash
작업도중 다른 branch에서 작업을 할일이 생겼을때 아직 commit을 할 수 없는 상황일때 git add git stash명령어를 통해 임시저장 할수있다. 작업을 끝내고 다시 원래 branch로 돌아왔을때git stash apply명령어를 통해 다시 원래 작업을 진행할 수 있다. git stash list명령어로 stash로 저장한 내용을 볼수 있음 stash 내용을 삭제하기위해선 git stash drop명령어를 통해 가장 최근의 stash한 내용을 삭제한다. apply를 하고 drop을 하기위해선git stash apply; git stash drop;또는git stash pop
2020. 6. 8. 23:57
최근댓글