repository에 소스를 올릴때, .gitignore 파일에 특정 디렉토리나 파일 이름을 작성해놓으면,
그 디렉토리나 파일은 제외된다.
.gitignore 예시
/node_modules .DS_STORE .idea .env
gitignore파일을 수정하고 다음명령어를 실행한다.
git rm --cached /path/to/file
Last updated 7 years ago