본문 바로가기
Tool

.gitignore가 적용이 안될때

by progrpsk 2019. 7. 19.

최근 구글 클라우드 리파지토리를 쓰고 있었는데,

.gitignore를 세팅하고 푸쉬해도 설정한 폴더가 그대로 남아있음을 확인하였다.

그에 관하여 문제를 찾아보니 아래의 명령어를 치면 해결할 수 있었다.

git rm -r --cached .

자세한 사항은 아래의 링크를 확인바란다.

 

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

 

.gitignore is ignored by Git

My .gitignore file seems to be being ignored by Git - could the .gitignore file be corrupt? Which file format, locale or culture does Git expect? My .gitignore: # This is a comment debug.log nbpr...

stackoverflow.com

 

댓글