gitignore를 쓰기 전에 만약 커밋을 하게 되면, 곤란한 경우가 나옵니다. 한 번 커밋에 올라간 파일은, 계속해서 트래킹이 되기 때문이죠. 그럴 때 쓰이는 게 이 코드입니다. # To create a new .gitignore file touch .gitignore # To untrack the unnecessary tracked files in your gitignore which removes everything from its index. Specific filenames can also be used instead of dot(.). git rm -r --cached . git add . git commit -m "gitignore fixed untracked files" 출처 : towar..