.gitignore 템플릿 참고하기
버전 관리 시스템(VCS)으로 GIT을 주로 사용하고 있습니다.
저장소를 새로 생성할 때마다 .gitignore
를 반드시 설정하고 있는데요. 기본적으로 필요한 설정들을 기억하기는 어렵기 때문에 주로 github
에서 제공하는 github/gitignore 템플릿을 참고하고 있습니다.
아래는 현재 Github
에서 자동으로 생성해주는 .gitignore
를 비교해본 내용입니다. (2017-02-28 일자 기준)
Github에서 저장소 생성시 추가하는
Node
기준.gitignore
# Logs
logs
*.log
npm-debug.log*
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules
jspm_packages
# Optional npm cache directory
.npm
# Optional REPL history
.node_repl_history
github/gitignore 템플릿
Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
보시다시피 일부 내용이 다릅니다. (yarn 패키지 매니저에 대한 설정 등)
기본 설정을 잡을때 참고하면 좋을 것 같습니다. :D
추가로 gitignore
템플릿을 생성해주는 툴을 소개합니다.
Command Line
으로도 사용 가능하며, www.gitignore.io 사이트에서 태그 자동완성을 통해 선택 후 생성하는 기능도 제공합니다.