Angular용 .gitignore
저장소에 바로 복사할 수 있는 Angular 제외 규칙 17개.
TypeScript 기반 웹 애플리케이션 프레임워크
Angular용 전체 .gitignore
# LFGitignore로 생성 - https://lfgitignore.com
# 생성일: 2026-10-13 16:11:00 UTC
# 기술: Angular
### Angular ###
/dist/
/out-tsc/
# 임시 디렉터리
/tmp/
# 코드 커버리지 보고서
/coverage/
/e2e/test-output/
/.angular/
.angular/
/node_modules/
/package-lock.json
/yarn.lock
/.env
/.angular-cli.json
/.ng/
# TypeScript 빌드 정보
*.tsbuildinfo
# npm 디버그 로그
npm-debug.log*
# Yarn 디버그 로그
yarn-debug.log*
# Yarn 오류 로그
yarn-error.log*
이 Angular 규칙이 실제로 제외하는 항목
아래에서 각 패턴과 .gitignore에 포함하는 이유를 확인하세요.
Angular 전용
| 패턴 |
제외 대상 |
/dist/ |
Angular 전용 |
/out-tsc/ |
Angular 전용 |
/tmp/ |
임시 디렉터리 |
/coverage/ |
코드 커버리지 보고서 |
/e2e/test-output/ |
Angular 전용 |
/.angular/ |
Angular 전용 |
.angular/ |
Angular 전용 |
Node 모듈 및 의존성 파일
| 패턴 |
제외 대상 |
/node_modules/ |
Node 모듈 및 의존성 파일 |
/package-lock.json |
Node 모듈 및 의존성 파일 |
/yarn.lock |
Node 모듈 및 의존성 파일 |
Angular CLI 및 빌드 산출물
| 패턴 |
제외 대상 |
/.angular-cli.json |
Angular CLI 및 빌드 산출물 |
/.ng/ |
Angular CLI 및 빌드 산출물 |
TypeScript 캐시
| 패턴 |
제외 대상 |
*.tsbuildinfo |
TypeScript 빌드 정보 |
로그
| 패턴 |
제외 대상 |
npm-debug.log* |
npm 디버그 로그 |
yarn-debug.log* |
Yarn 디버그 로그 |
yarn-error.log* |
Yarn 오류 로그 |
이 Angular용 .gitignore 사용 방법
- 위의 Angular 규칙을 복사하거나 파일을 바로 다운로드하세요.
- Git 저장소 루트에 .gitignore라는 파일을 만들고 규칙을 붙여 넣으세요.
- 이미 추적 중인 파일이 있다면 git rm -r --cached . 명령을 실행한 다음 다시 커밋하세요. Git은 추적하지 않는 파일에만 제외 규칙을 적용합니다.
- 팀원 모두가 같은 규칙을 사용하도록 .gitignore를 커밋하세요.