.gitignore 파일이란?
.gitignore 파일은 Git 버전 관리 시스템에서 특정 파일이나 디렉터리를 추적하지 않도록 설정하는 데 사용됩니다.
파일이름
.gitignore
설정 방법
특정 파일 무시하기: filename.ext
모든 .log 파일 무시하기: *.log
특정 디렉터리와 그 내용 전체 무시하기: directoryname/
#으로 시작하는 줄은 주석으로 처리됩니다.
일반적인 프로젝트에서 사용할만한 설정
# node modules
node_modules/
# Logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
*.log.pid
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Dependency directory
# Commenting this out is preferred by some developers, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules/
# Users Environment Variables
.env
'프로젝트 환경' 카테고리의 다른 글
CRA(create-react-app) + TypeScript (0) | 2023.10.24 |
---|---|
.env 파일로 GIT Hub에 올릴 부분 제한하기 (0) | 2023.08.25 |
.gitignore 파일 설정