Skip to content
framework2 active rulesVerified 2026-09-30

Astro .gitignore Template

Astro content collections cache, generated TypeScript environment types, and static build output. Generated and merged deterministically with upstream GitHub repository patterns to keep your repository clean of package directories, temporary build artifacts, and local environment files.

Interactive Stack Generator

Preconfigured with Astro
Search for templates
Quick add:
Selected1
Astro
Selected Templates (1)
.gitignore
2 rules
### Astro ###
# Astro content collection cache and generated TypeScript types
.astro/
# Astro static build output
dist/
7 lines•UTF-8
Deterministic

Raw Astro .gitignore

Crawlable upstream source template
astro.gitignore•6 lines•UTF-8
# Astro content collection cache and generated TypeScript types
.astro/
# Astro static build output
dist/

Key Pattern Breakdown

Build Outputs & Compiled Artifacts

Generated binary files, compilation targets, and distribution bundles that can be reliably reproduced from source.

dist/

Source & Verification

License: CC0-1.0

Place this file in the root directory of your project as .gitignore. Changes take effect on newly added or untracked files.