stash 내용 보기
git stash list
stash한 사항을 꺼내옴
지우지 않고 적용함git stash apply
stash한 내용을 지움
git stash drop
apply + drop
git stash pop
모든 stash상황 clear하기
git stash clear
특정 stash 가져오기
$ git stash list
stash@{0}: On develop: yarn 문제 해결을 위한 stash
stash@{1}: On develop: 9월8일 임시저장
stash@{2}: On develop: 9월2일 branch 변경을 위한 임시저장
...
git stash apply stash@{1}
했을때
error: unknown switch `e'
usage: git stash apply [--index] [-q|--quiet] [<stash>]
-q, --quiet be quiet, only report errors
--index attempt to recreate the index
에러가 난다면
git stash apply 'stash@{1}'
로 해결하기
728x90
'기타' 카테고리의 다른 글
Already included file name '파일경로/파일.ts' differs from file name (0) | 2022.08.12 |
---|---|
zsh: command not found: yarn (0) | 2022.07.20 |
[VSCode] emmet 사용하기, emmet이 작동하지 않을 때 (0) | 2022.07.16 |
npm 전역에 설치된 모듈 확인하기 (0) | 2020.04.08 |