에러 : .gitignore가 제대로 작동되지 않아서 ignore처리된 파일이 계속 changes에 나올때가 있다.
찾아보니 git의 캐시가 문제가 되는거였다.
terminal에 아래 명령어로 캐시 내용을 전부 삭제 후 다시 add All해서 커밋하면 해결된다.
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
참고 : https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git
'WORK > Trouble' 카테고리의 다른 글
[오류/스프링부트] illegal start of type (0) | 2023.06.21 |
---|---|
[오류/스프링부트] Could not resolve all files for configuration ':compileClasspath'. (0) | 2023.06.20 |
[오류/인텔리제이] Intellij 에서 html 인식 안 됨 (0) | 2023.06.13 |