메인 콘텐츠로 건너뛰기

2026-05-20 · 1분 읽기

새 repo용 gitignore template

옛 repo 전체 copy 대신 stack-specific template에서 시작.

gitgitignoredevtools

핵심 요점

  • primary language/runtime template 고른 뒤 local path append.
  • secret은 git 밖 — CI에서 env file parse해도 .env는 gitignore.

base template 선택

Node template node_modules, build output; Python virtualenvs, __pycache__.

monorepo에 language 추가 시 regenerate — review 없이 hundreds of lines hand-edit 금지.

자주 묻는 질문

.env.example commit?

예 — secret 없는 example은 onboarding help; real .env ignore.

두 template merge?

base 하나 generate, second stack unique line paste, commit 전 dedupe.