보통git add .
를 이용해 변경된 전체 파일을 추가하고 커밋한다.
이 때,
등등이 생겨 git add 에 포함시키기 싫은 경우가 있으면 .gitignore
라는 디렉토리를 만들어 무시할 파일을 넣어줄 수 있다.
git init 을 한 폴더에다가 .gitignore 라는 이름으로 파일을 하나 만들어준다. 그 안에 한줄씩 제외할 파일 혹은 폴더를 쓰면 된다.
fileName.js
/fileName.js
node_module/
folder/my.txt
folder/**/fileName_2.txt
*.txt
!fileName.txt