Skip to content

📦 .gitignore / .dockerignore Generator

Stack and combine presets for languages (Node, Python, Go, Rust, Java, PHP, Ruby), frameworks (React, Next.js, Django, Rails, Laravel), IDEs (VSCode, JetBrains, Vim) and OS (macOS, Windows, Linux) to produce a tidy .gitignore or .dockerignore in one click. Auto-deduplication, comment preservation, live preview, copy and download.

100% Free No signup Browser-only 5 languages Dark mode

📝 .gitignore (preview)

# Pick at least one preset

📖 How to Use

  1. 1
    Pick a mode
    Pick .gitignore or .dockerignore at the top. .dockerignore prioritises image-bloat patterns (node_modules / .git / *.log).
  2. 2
    Pick stacks
    Click chips for the languages, frameworks, IDEs and OS you use. Multi-selection merges and deduplicates them.
  3. 3
    Copy or download
    Copy to clipboard or download as .gitignore / .dockerignore from the buttons above the preview.

❓ Frequently Asked Questions

What is the difference between .gitignore and .dockerignore?
.gitignore excludes patterns from Git tracking. .dockerignore excludes them from the Docker build context (COPY / ADD). Same goal — different consumer. .dockerignore should especially exclude node_modules / .git / *.log to keep image size down.
Can I append to an existing .gitignore?
Yes. Copy the preview into the end of your existing file, or run something like `cat existing.gitignore generated.gitignore | sort -u > new.gitignore` to dedupe.
How is this different from github/gitignore?
github/gitignore provides exhaustive single-stack templates (100+ lines each). This tool curates the most-needed lines per stack and merges multiple stacks into one tidy file. Less verbose, faster to read.
Can you add more presets?
Send the stack name via the feedback form below. We add high-demand presets.
🐛 Found a bug or issue with this tool?

Free to use, no signup. Even just the steps to reproduce are helpful. Reports go directly to the operator and help us fix issues.

* Browser info (UA / screen / language / URL) is sent automatically to help reproduce the issue