Gitignore Generator
Create a .gitignore file from common templates for languages, IDEs and operating systems, plus your own lines. Reorder or remove groups, merge duplicate patterns automatically and copy or download the result.
Create a .gitignore file from common templates for languages, IDEs and operating systems, plus your own lines. Reorder or remove groups, merge duplicate patterns automatically and copy or download the result.
Gitignore Generator builds a .gitignore file from templates for Node.js, Python, PHP, Java, .NET, Ruby, Go, Rust, Android, iOS/Xcode, Visual Studio Code, JetBrains IDEs, macOS, Windows and Linux. Select the ones your project needs, reorder or remove them, and add your own lines; each template appears as a labelled group with short comments explaining its patterns.
When several templates contain the same pattern, it is kept only where it first appears and later duplicates are removed, with a count shown. Comments stay with their patterns, and a comment block is dropped only if all of its patterns were duplicates. Custom lines are added as plain text, never run. The templates are common starting points rather than a complete or authoritative list, so review the result for your repository. Remember that .gitignore does not untrack files already committed.
No. It only affects untracked files. To stop tracking a file that is already committed, run git rm --cached <file> and commit the change.
A pattern is kept the first time it appears in the output order and removed from later groups. Comments stay; a comment block is removed only when all of its patterns were duplicates.
Usually not, but .gitignore is read in order, so if you rely on a ! negation followed by the same pattern again, review the order after merging.
No. They cover common files for each stack but are not exhaustive or suitable for every repository or security policy. Add project-specific lines and review the result.
Some browsers or systems hide or rename files that start with a dot. Rename the file to .gitignore and place it in the root of your repository.
Any .gitignore patterns or # comments, up to 500 lines. They are added as plain text after the templates; control characters are rejected.
No. Everything is processed in your browser on your device. Nothing is uploaded, no request is sent, and inputs and results are not saved in browser storage. Reset clears them from the page.