HappyCoding/git

git ignore 안될 때-> cached 삭제하는 명령어

git ignore 가 안되어 깃헙 저장소에 database 비밀번호가 올라갔던 적이 있다.

add하면서  캐시가 남아서 그런거였고, 캐시 삭제하는 명령어를 입력해주면 ignore가 정상작동됨! 

git rm --cached <file name>