반응형

문제/에러

gitignore and “The following untracked working tree files would be overwritten by checkout”

원인

보통 다른 브랜치로 체크아웃하려다가 발생하는 에러인데,

untracked한 파일들이 남아있어서 이걸 overwrtten하려다가 발생하는 에러이다.

해결방법

그래서, untracked파일을 우선적으로 제거해야한다.

따라서, 아래의 명령어를 친다.

$ git clean -d -fx .

 

반응형