
✨ 해결 방법 ✨
Step 1) 변동사항 스택 내 저장
stash: 현재 Staging 영역 내 파일의 변동사항을 스택에 넣어두기
git stash
Step 2) checkout 또는 pull 시행
checkout 희망 시
git checkout [변경할 branch 이름]
pull 희망 시
git pull origin [branch 이름]
Step 3) 스택 내 데이터 삭제 ..?
git stash pop
'GIT > GIT ERROR' 카테고리의 다른 글
[git] git 'master'말고 'main'에 올리기 실패하는 경우 (0) | 2023.09.12 |
---|