.gitignore 문제

Intellij에서 Commit 하면 자꾸 나오는 문제 해결 하기

by 서오석

원인은 git이 프로젝트 만들 때 gitignore 부분을 cache하기 때문에 이후에 추가한 ignore가 처리되지 않아서 생기는 문제임


git rm -rf --cached .
git add .
git commit

캐시 삭제 후 다시 새로 추가된 파일을 add하면 문제 해결.


출처 : http://theeye.pe.kr/archives/2091


매거진의 이전글ActiveRecord와 Hibernate