.gitignore에 해당하는 폴더, 파일이 이미 repository에 있다면 우선 삭제부터 해야한다.
$ vim .gitignore $ git add .gitignore $ git commit -m "make ignore" $ git push -u origin branch명