The following untracked working tree files would be overwritten by merge...

대부분 현재 수정중인 파일을 다른 작업자가 이미 커밋한 상태일때 git pull을 하면 발생하는 에러코드이다.

 

처리 방법

git add .
git stash
git pull  또는  git pull upstream master
git stash apply  또는  git stash pop  

git stash는 동기화 먼저 진행하고 add 로 내가 수정한 파일은 head로 임시 저장된 상태

git pull을 진행해 최근버전으로 프로젝트 가져오고,

git stash apply를 해서 내가수정한 파일과 합치거나, git stash pop로 머지를 강제 진행하고 삭제

 

 

728x90

+ Recent posts