.gitignore 가 작동하지 않을 때 대처법

Jimin·2023년 7월 3일
0

git

목록 보기
2/2

.gitignore가 제대로 작동되지 않아서 ignore처리된 파일이 자꾸 changes에 나올때 git의 캐시가 문제가 되는거라 아래 명령어로 캐시 내용을 전부 삭제후 다시 add All해서 커밋하면 된다.

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

참고

profile
https://github.com/Dingadung

0개의 댓글