방법1

.gitignore가 제대로 작동되지 않아서 ignore 처리된 파일이 자꾸 change에 나올때가 있습니다.

git의 캐시가 문제가 되는거라 아래 명령어로 캐시 내용을 전부 삭제후 다시 add All 해서 커밋하시면 됩니다.

$ git rm -r --cached .
$ git add .
$ git commit -m "fixed untracked files"

방법2

상세한 원인과 방법은 다음 포스팅을 참조하세요.

GH: .gitignore 파일 사용법

ref : https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git