.gitignore Generator

Combine common .gitignore snippets for languages and editors into one file. Runs entirely in your browser.

Select what to include

About this tool

A curated set of common patterns for popular languages, tools, and operating systems — not a full mirror of the community github/gitignorerepository. Duplicate lines across selected templates are removed automatically.

Share on LinkedInShare on X
Link to this tool

Copy this HTML to cite this tool from your own site or article.

About .gitignore Generator

gitignore Generator combines community-tested .gitignore rules for operating systems, IDEs, frameworks, and programming languages into a single file.

How to use .gitignore Generator

  1. Search and select technologies (e.g. Node, macOS, VSCode, Python).
  2. Preview combined .gitignore rules.
  3. Click Generate .gitignore to compile unified gitignore text.
  4. Copy or download generated .gitignore file.

Examples

Selected: Node, macOS, VSCode Output: Combines node_modules/, .DS_Store, and .vscode/ ignore patterns.

FAQ

Where do the gitignore rules come from?

Rules are sourced from standard open-source GitHub .gitignore template repositories.

Can I add custom pattern rules?

Yes. You can paste custom directory and file glob patterns into the generated output.