git stash save --keep-index
스테이징된 변경 사항, 즉 staging area 는 Index 라고 하기 때문에
git stash save 뒤에 --keep-index 를 붙인다.
이 때, untracked file은 stash에 저장되지 않으며,
untracked file도 저장하고 싶다면 밑의 명령어를 실행해야 한다.
git stash save --include-untracked
'Git' 카테고리의 다른 글
Git | remote ref does not exist 오류 해결 (1) | 2024.02.02 |
---|---|
Git | 로컬 및 원격 브랜치 삭제하기 (1) | 2024.01.04 |
Git | 강제로 Pull 받기 (0) | 2022.11.09 |
Git | 삭제된 Commit 복구하기 (0) | 2022.08.26 |
Git | Stash 복구하기 (0) | 2022.05.30 |