stash

현재 작업 현황을 임시적으로 저장

commit 되지 않은 모든 파일들이 저장됨

git stash

stash 저장하기

1
2
$ git stash
Saved working directory and index state WIP on main: abc1234 Latest commit message
1
2
$ git stash save "123"
Saved working directory and index state On main: 123

stash 목록 확인

1
2
3
$ git stash list
stash@{0}: WIP on main: abc1234 Latest commit message
stash@{1}: WIP on main: def5678 Previous commit message

stash 적용하기

1
$ git stash pop
1
$ git stash apply stash@{1}

stash 적용 없이 삭제하기

1
$ git stash drop
1
$ git stash drop stash@{1}
1
$ git stash clear
Licensed under CC BY-NC-SA 4.0
comments powered by Disqus
Hugo로 만듦
JimmyStack 테마 사용 중