Tools / .gitignore Generator

.gitignore Generator.

Combine .gitignore templates for languages, frameworks, editors and operating systems into one file.

Runs in your browser

Comma-separated. Available: node, nextjs, nuxt, vite, php, laravel, symfony, wordpress, python, java, maven, gradle, android, swift, flutter, go, rust, ruby, dotnet, cpp, terraform, macos, windows, linux, jetbrains, vscode, vim, docker, logs.

Ctrl/⌘ + Enter to run · Ctrl/⌘ + Shift + C to copy the result

Result
.gitignore
Included templates

About .gitignore Generator

.gitignore Generator assembles a .gitignore file from curated templates so build output, dependencies, local secrets and editor clutter never end up in your repository. List the parts of your stack separated by commas, for example "laravel, node, macos, jetbrains, vscode", and the tool merges the matching templates in that order, each under its own comment heading, and drops patterns that an earlier section already added. Common aliases are understood, so "js", "typescript" or "pnpm" map to the Node.js template and "phpstorm" or "idea" to JetBrains. Add project-specific paths in the extra box and they are appended at the end. The templates follow the widely used patterns from the github/gitignore collection, trimmed to what most projects need. Typical mistakes this prevents: committing node_modules or vendor, pushing a .env file with production credentials, checking in .DS_Store files from macOS or personal IDE settings that overwrite a teammate's configuration. Remember that .gitignore only affects untracked files. If a file is already committed, adding it here does nothing until you run git rm --cached on it, and a secret that was ever pushed should be rotated, not just ignored. For editor and OS files that only you produce, a global excludes file (core.excludesFile) keeps the project .gitignore focused on the project itself.

How to Use

  1. List your languages, frameworks, editors and operating systems, separated by commas.
  2. Add any project-specific paths in the extra box.
  3. Copy or download the result and save it as .gitignore in the repository root.

Frequently Asked Questions

Why is a file still tracked after I added it to .gitignore?

.gitignore only applies to untracked files. Run git rm --cached <file> (or -r for a folder) and commit; the file stays on disk but leaves the repository.

Should IDE folders like .idea be ignored?

Usually yes, because they contain personal settings. Some teams commit shared run configurations or a .vscode/extensions.json; the VS Code template keeps those exceptions.

Does the order of patterns matter?

Yes, later patterns win. A negated pattern such as !.env.example re-includes a file only if it comes after the rule that ignored it.

Is anything uploaded?

No. The file is assembled in your browser.

Related Tools