Skip to content
Categories
Gitignore Generator
Select languages and tools to generate a .gitignore file.
Overview
- Generates a .gitignore file, defining which files and folders Git should ignore, based on templates for languages, frameworks, and editors.
- You can combine multiple templates, so you can create a .gitignore matching your actual project setup at once, such as "Node.js + Next.js + VSCode".
- Quickly excludes things like node_modules or build artifacts from Git during a new project's initial setup.
Usage
- Select the templates for the languages or tools used in your project (multiple selections allowed).
- Click the "Generate" button.
- The combined .gitignore content for the selected templates is displayed. Use the "Copy" button to copy the result to the clipboard.
Example
Input
Select Node.js, Visual Studio Code
Output
### Node.js ### node_modules/ ... ### Visual Studio Code ### .vscode/* ...
Use Cases
- Generating a .gitignore all at once, matching the languages, frameworks, and editors used, when creating a new project
- Filling in missing .gitignore entries in an existing project by selecting the additional templates needed
- Preparing a common set of exclusion patterns based on standard templates to unify .gitignore content across a team
FAQ
Can I combine multiple templates?
Yes. All selected templates are merged together and output as a single .gitignore file.
What if my language or tool isn't supported?
Use the generated content as a starting point and manually add any additional exclusion patterns you need.
Is my input sent anywhere?
No. Combining the templates happens entirely within your browser.
Notes
- The generated content is based on general-purpose templates. Manually add any project-specific exclusions after generating.
- If your language or tool isn't supported, use the generated result as a base and add the patterns you need.
- The generated result exists only on the page and is lost on reload, so copy and save it if you need to keep it.
Related Tools
Generate sortable unique identifiers (ULIDs).
Generate multiple passwords by specifying character types and length.
Generate multiple random strings by specifying character types and length.