개발 환경/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

'개발 환경 > GitㆍGitHub' 카테고리의 다른 글

git 자주쓰는 명령어와 TIP  (0) 2022.08.02
이미 올라간 node_modules 삭제하기  (0) 2022.05.27
git 명령어  (0) 2022.04.19