개발 환경/GitㆍGitHub
이미 올라간 파일 .gitignore에 추가 & git remote에서 삭제하기
은선은
2022. 4. 13. 22:07
이미 git remote에 올라간 node_modules 폴더를 git repository에서 삭제하고 .gitignore에 추가하는 방법
.gitignore file에 node_modules 추가하기
$ git rm -r --cached node_modules
$ git commit -m 'Remove and ignore directory node_modules'
$ git push origin master