.gitignore Generator

.gitignore Generator builds a .gitignore file by combining ready-made patterns for the languages, frameworks and tools you select, excluding common unwanted files (dependencies, build output, IDE settings) from the start of a new project.

Templates
Result
# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
.pnpm-store/
dist/
build/

# macOS
.DS_Store
.AppleDouble
.LSOverride
._*

# VS Code
.vscode/*
!.vscode/extensions.json

How it works

  1. 1Check the languages/frameworks/tools you use in your project (Node.js, Python, Next.js, VS Code, etc.).
  2. 2The result is combined and previewed instantly.
  3. 3Use 'Copy' to copy it, or 'Download .gitignore' to save it directly as a file.
  4. 4Place the downloaded file in your project root as `.gitignore`.

Frequently asked questions

Can I select multiple templates?+

Yes, you can check as many templates as you need at once (e.g. Node.js + Next.js + VS Code + macOS); each one's patterns are combined under its own heading.

Does it modify an existing .gitignore file?+

No, this tool only generates new content; if you want to merge it with an existing file, append the generated text to the end of your current file manually.

How up to date are the templates?+

The templates here are a small, curated subset based on the most common patterns from GitHub's official gitignore repository; for a rare/specialized tool, you may need to add a pattern manually.

Does adding an already-committed file to .gitignore remove it from the repo?+

No, .gitignore only affects untracked (not yet committed) files; to remove an already-tracked file you also need to run `git rm --cached <file>`.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/code/gitignore-generator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title=".gitignore Generator · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Developer Tools Guide →

Command Palette

Search for a command to run…