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

Open in Full Generator
Search for templates
Quick add:
Selected1
Astro
Selected Templates (1)
.gitignore
### Astro ###
# Astro content collection cache and generated TypeScript types
.astro/
# Astro static build output
dist/
2 rules1 template7 lines
Deterministic

Raw Astro .gitignore

Crawlable upstream source template
astro.gitignore6 lines
# Astro content collection cache and generated TypeScript types
.astro/
# Astro static build output
dist/

Key Pattern Breakdown

Build & Compilation Artifacts

Ignores compiled binaries, intermediate object files, and build output directories generated during development.

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.