Gitignore Generator
Gitignore Generator
Tick the languages, tools and operating systems your project uses. The generator combines the standard ignore patterns for each one into a single ready-to-use .gitignore file, with duplicate lines removed.
About the Gitignore Generator
A .gitignore file tells Git which files and folders to leave out of version control. Typical examples are dependency folders, build output, log files, local environment files, and operating-system files. This gitignore generator builds a .gitignore from well-known standard patterns for the languages and tools you select, so you do not have to write each rule from memory.
Tick the boxes that match your project and the generator combines the patterns into one file, with duplicate lines removed when templates overlap. Each section is labelled with the language or tool it came from, so you can read the file and see where every rule came from.
The file is assembled entirely in your browser. Nothing is uploaded, and you can copy the result or download it as a file already named .gitignore, ready to drop into your repository.
How to use
- Tick every language, tool, and operating system your project uses.
- Click Generate .gitignore to build the combined file.
- Review the output in the text box. A line under it tells you how many templates were combined.
- Copy the result, or click Download .gitignore to save it as a file.
- Place the file in the root folder of your Git repository and commit it.
Key features
- Standard ignore patterns for 14 languages, tools, and operating systems
- Duplicate lines removed automatically when templates overlap
- Each section labelled with its language or tool
- Copy to clipboard and one-click .gitignore download
- Clear Selection button to start over
- Free to use, with no signup and no file uploads
Common uses
- Starting a new repository with a clean .gitignore from day one
- Keeping dependency folders like node_modules out of commits
- Stopping local environment files and secrets from being tracked
- Combining patterns for a project that mixes languages, such as Python and JavaScript
- Standardising the .gitignore across a team’s projects
Frequently asked questions
It is a plain text file that tells Git which files and folders to ignore. Git will not track files that match its rules, so build output, dependencies, and local settings stay out of your commits.
Fourteen: Node.js, Python, Java, PHP, Go, Ruby, C and C++, .NET, Rust, macOS, Windows, Linux, VS Code, and JetBrains IDEs. Frameworks such as React or Laravel are not separate templates, so add their patterns by hand after generating.
Put it in the root folder of your repository. Git applies its rules to the whole project from there.
No. Files Git already tracks stay tracked until you remove them from the index. A .gitignore only stops untracked files from being added. To stop tracking a file you already committed, remove it from the index with git rm –cached while keeping it on disk.
Yes. Add project-specific paths, such as a folder with private keys or a local data file, after you generate the file. You can also delete any rule you do not need.
Tick the boxes for the languages and tools your project uses, and the generator combines their standard patterns into one file, removing duplicate lines where templates overlap. Download the file and place it in the root folder of your repository.
Yes, tick every language and tool your project uses and the generator merges them into a single .gitignore. Each section is labelled with the language or tool it came from, so you can find and adjust rules later.
A file pattern matches files by name, such as *.log, while a folder pattern ends with a slash, such as node_modules/, and matches a whole folder. The generated templates already use the right form for each rule.
Use a pattern without a slash, such as *.log, and Git applies it in every folder of the project. A pattern with a folder name in front of it only applies inside that folder.
It still helps, since it can keep operating system files, editor settings, and local data out of version control. Tick the macOS, Windows, Linux, VS Code, or JetBrains boxes that match your setup even for a documents-only project.
