How It Works Under the Hood
Curated stack templates map language, framework, OS, and secret patterns into grouped sections; the builder tracks seen rules in a `Set` across active stacks plus your custom patterns so duplicate entries never appear twice.
Step-by-Step Instructions
Click tech stacks, frameworks, OS, and IDE badges that apply to your repository.
Add any project-specific paths or wildcard rules in Custom Rules.
Review the clean sectioned, deduplicated `.gitignore` preview on the right.
Copy to clipboard or click Save `.gitignore` directly into your project root.
Key Features & Performance
- One-click presets for Node/TS, Astro/Next/Vite, Python, Rust, Go, Java, Secrets/.env, macOS/Windows, and IDEs
- Automatic rule deduplication prevents duplicate `node_modules/` or `.DS_Store` lines
- Includes essential Secrets & `.env` guards (`.env`, `.env.*.local`, `*.pem`, `*.key`, `.dev.vars`)
- Supports custom project rules with comment preservation
- Zero external API dependency: runs instantly offline
Methodology, Formulas & Technical Standards
Templates are bundled locally in TypeScript and merged cleanly via deterministic deduplication (`seen.has(rule)` check per pattern line) while retaining section headers for readability.
Common Real-World Use Cases
- Bootstrapping a fresh polyglot monorepo (e.g., Astro frontend + Python FastAPI worker)
- Adding forgotten `.wrangler/`, `.dev.vars`, and `*.pem` exclusions before initial commit
- Generating macOS `.DS_Store` and Windows `Thumbs.db` ignores for cross-platform teams
- Auditing bloated `.gitignore` files into clean commented blocks
Worked Examples & Edge Cases
Modern Cloudflare Web Stack
Stacks: Node.js + Astro/Next/Vite + Secrets & .env Files
Includes node_modules/, dist/, .astro/, .wrangler/, .env, .dev.vars
Prevents accidental commits of build folders or Cloudflare secret files.
Automatic Deduplication
Custom rule `.env` + Secrets preset containing `.env`
Emits `.env` once cleanly without duplicates
Keeps generated repository configs minimal.
Limitations, Scope & Accuracy Notes
- • Git only ignores untracked files — if `.env` or `dist/` was already committed earlier, run `git rm --cached` separately after updating `.gitignore`.
- • Negative exception rules (`!important.env`) depend on exact order relative to wildcard ignores.
Local Browser Processing & Privacy
Traditional web converters upload your documents, snippets, or media files to remote servers. Stack .gitignore Builder & Deduplicator runs inside your browser tab:
Your input text and files are processed locally without uploading payloads to a processing server.
Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).
Working outputs stay in your browser tab and are released when you reset the tool or close the tab.
Frequently Asked Questions
Why did my `.gitignore` not untrack a file I already committed?
Git tracks previously committed files regardless of `.gitignore`. Remove them from the index once using `git rm --cached <file>`.
Should `Cargo.lock` or `package-lock.json` be ignored?
For deployable applications, lockfiles are usually committed for reproducible builds, whereas libraries often ignore them. Adjust per your repo policy.
Are `.dev.vars` and `.wrangler/` included for Cloudflare projects?
Yes — `.wrangler/` is inside the Astro/Next/Vite preset and `.dev.vars` is inside Secrets & .env Files.
Does clicking Save `.gitignore` download the dotfile properly?
Yes. Note that some OS file pickers or macOS Finder hide dotfiles by default until hidden files are toggled.
Explore Related Micro-Tools
.env Diff, Formatter & Secret Sanitizer
Compare environment files side-by-side, sort keys alphabetically, and scrub secrets into .env.example
Docker Run ↔ Compose YAML Converter
Convert docker run CLI flags into compose.yaml services and translate Compose services back into docker run commands
SemVer Range & npm Version Tester
Test npm SemVer ranges (^, ~, >=), compare release pairs, find max satisfying versions, and bump releases