Gitignore Generator — Combine Templates Build a .gitignore from language and framework templates.
100% offline
.gitignore
2 templates · 27 rules
### Node ###
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.npm
.eslintcache
.node_repl_history
*.tgz
.yarn-integrity
.env
.env.local
dist/
coverage/
.cache/

### macOS ###
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

About Gitignore Generator — Combine Templates

A good .gitignore keeps build artifacts, dependencies, editor files and secrets out of your repository from the very first commit. Writing one by hand means remembering every pattern for your language, framework and operating system — and it's easy to miss something.

This free .gitignore generator builds the file for you. Pick the languages and frameworks you use and it combines the matching templates — drawn from the well-known github/gitignore set — into a single, de-duplicated file with clear section headers.

Everything runs in your browser. No selections, file contents or generated output ever leave your device, so it works offline and stays completely private.

Features

  • One-click multi-select picker for common stacks — Node, Python, Java, macOS and more
  • Combined output with per-template section headers
  • Overlapping patterns automatically de-duplicated
  • Copy the full .gitignore in a click; fully offline

How to use

  1. Click the languages, frameworks and operating systems your project uses.
  2. Watch the combined .gitignore update live with a section per template.
  3. Use Copy all to grab the file, then save it as .gitignore in your repo root.

Frequently asked questions

Where do these .gitignore templates come from?

They mirror the widely used github/gitignore templates for popular languages, frameworks and operating systems. The data is bundled into the page, so the generator works without any network access.

How are overlapping rules handled?

When two templates share a pattern (for example node_modules/ in both Node and React), it is emitted only once. The first section to use it keeps it, so the file stays clean and order is preserved.

Where should I put the generated file?

Save the output as a file named .gitignore in the root of your repository. Git applies its rules to that directory and all subdirectories. You can keep additional .gitignore files in subfolders if needed.

Is my selection or output sent anywhere?

No. The tool runs entirely in your browser. Your template selections and the generated .gitignore never leave your device, making it safe to use offline.

Everything runs locally in your browser — your input is never uploaded.