반응형
.git ignore 가 작동하지 않을때 대처법
.gitignore가 제대로 작동되지 않아서 ignore 처리된 파일이 changes 에 나올때가 있습니다.
아래 명령어로 캐시 내용을 전부 삭제 후 다시 add 해서 커밋하시면 됩니다.
git rm -r --cached .
git add .
git commit -m "fixed untracked files"
참고자료
https://stackoverflow.com/questions/11451535/gitignore-is-ignored-by-git
https://stackoverflow.com/questions/25436312/gitignore-not-working
반응형
'개발 > IT 기타' 카테고리의 다른 글
curl - SSL certificate problem: unable to get local issuer certificate (0) | 2024.02.21 |
---|---|
오픈소스 ftp Cyberduck (0) | 2024.02.14 |
JSON 비교 1등 웹 사이트 - jsondiff.com (0) | 2024.02.14 |
[크롬] 개발자도구 붙여넣기 경고 메시지 (Don’t paste code into ~) (0) | 2024.02.07 |
리눅스 공인 IP 확인 (0) | 2024.02.05 |