.gitignore Generator.
Combine .gitignore templates for languages, frameworks, editors and operating systems into one file.
Runs in your browserAbout .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
- List your languages, frameworks, editors and operating systems, separated by commas.
- Add any project-specific paths in the extra box.
- 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
Fill in a short form and get a clean README.md with badges, features, installation, usage and license sections.
Create a LICENSE file with the verbatim text of MIT, Apache-2.0, BSD, ISC, MPL-2.0, 0BSD or the Unlicense.
Build a Conventional Commits message with scope, body, breaking change and footers, plus the git command.
Searchable cheatsheet of everyday git, docker, docker compose and kubectl commands with short explanations.
Generate UUID v4, UUID v7, and ULID identifiers.
Generate secure, random passwords with entropy info.