Skip to content
language14개 활성 규칙2026-09-30 검증 완료

Dart .gitignore 템플릿

Dart SDK packages, pub cache, build outputs, and doc generation. GitHub 공식 리포지토리 패턴과 결정론적으로 병합되어 의존성 폴더, 빌드 결과물, 로컬 환경 변수 파일로부터 저장소를 깨끗하게 지켜줍니다.

인터랙티브 스택 생성기

전체 생성기에서 열기
Search for templates
빠른 추가:
선택됨1
Dart
선택된 템플릿 (1)
.gitignore
14개 규칙
### Dart ###
# See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/
# dotenv environment variables file
.env*
# Avoid committing generated Javascript files:
*.dart.js
# Produced by the --dump-info flag.
*.info.json
# When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js
*.js_
*.js.deps
*.js.map
.flutter-plugins
.flutter-plugins-dependencies
31줄•UTF-8
결정론적 파이프라인

Dart .gitignore 원본 소스

크롤링 가능한 공식 업스트림 원본 템플릿
dart.gitignore•30 lines•UTF-8
# See https://www.dartlang.org/guides/libraries/private-files
# Files and directories created by pub
.dart_tool/
.packages
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock
# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/
# dotenv environment variables file
.env*
# Avoid committing generated Javascript files:
*.dart.js
# Produced by the --dump-info flag.
*.info.json
# When generated by dart2js. Don't specify *.js if your
# project includes source files written in JavaScript.
*.js
*.js_
*.js.deps
*.js.map
.flutter-plugins
.flutter-plugins-dependencies

주요 제외 패턴 해설

의존성 및 패키지 폴더

패키지 매니저를 통해 언제든 복원 가능한 외부 라이브러리 및 벤더 디렉터리를 제외합니다.

.packages

빌드 및 컴파일 산출물

컴파일 과정에서 생성되는 바이나리, 중간 오브젝트 파일, 출력 결과물 폴더를 제외합니다.

build/

환경 변수 및 보안 키

API 키, 데이터베이스 비밀번호, 로컬 환경 변수(.env) 등 민감한 정보의 유출을 방지합니다.

.env*

출처 및 라이선스 검증

라이선스:: CC0-1.0

이 파일을 프로젝트 루트 디렉터리에 .gitignore라는 이름으로 저장하세요. 새로 추가되거나 아직 추적되지 않은 파일에 즉시 적용됩니다.