Microdeck.tools 100% In-Browser

Stack .gitignore Builder & Deduplicator

New

Stop pasting redundant `.gitignore` snippets into new repos. Toggle presets for Node/TypeScript, Astro/Next.js/Vite, Python/Jupyter, Rust, Go, Java, Docker, macOS, Windows, JetBrains/VS Code, and `.env` secrets, append custom project ignore rules, and generate a clean deduplicated `.gitignore` file with section comments.

100% In-Browser No Server Storage Instant Results
Select Tech Stacks, Frameworks, OS & IDEs (3 active)
Deduplicated .gitignore Output (22 rules)

Did this tool save you time? Help keep Microdeck free and maintained. Completely optional · From $3.

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

1

Click tech stacks, frameworks, OS, and IDE badges that apply to your repository.

2

Add any project-specific paths or wildcard rules in Custom Rules.

3

Review the clean sectioned, deduplicated `.gitignore` preview on the right.

4

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

Input
Stacks: Node.js + Astro/Next/Vite + Secrets & .env Files
Output
Includes node_modules/, dist/, .astro/, .wrangler/, .env, .dev.vars

Prevents accidental commits of build folders or Cloudflare secret files.

Automatic Deduplication

Input
Custom rule `.env` + Secrets preset containing `.env`
Output
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:

Processed in This Tab

Your input text and files are processed locally without uploading payloads to a processing server.

No Tool Payload Logging

Microdeck does not log or store the files or inputs you paste into tool workspaces (normal static hosting/CDN requests still load page assets).

Tab Memory Lifecycle

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

Support Microdeck

Completely optional · From $3 · No account required

Choose an amount (USD):Selected:$5

Minimum support amount is $3 USD.

Completely optional · From $3 · Checkout opens on Gumroad.