이미 올라간 파일에 대해서는 .gitignore를 추가해도 적용이 되지않는데 이때 아래의 명령어를 통해 해결할 수 있다.
$ git rm -r --cached . $ git add . $ git commit -m "Apply .gitignore" $ git push