.gitignore Generator
Generate a custom .gitignore file by selecting your languages, frameworks, IDEs and OS.
Languages
Frameworks
IDEs
OS
Tools
Preview (3 templates selected)
What the .gitignore Generator does
A .gitignore file tells Git which files and folders to leave out of version control - things like dependency directories, build output, editor settings, OS clutter and secret environment files. This generator lets you build one quickly by selecting the technologies you use from curated templates covering popular languages, frameworks, IDEs, operating systems and tools, then combines them into a single ready-to-use file.
It is aimed at developers starting a new repository or cleaning up an existing one. Rather than remembering every artifact each toolchain produces, you tick the relevant options and get a sensible, well-commented .gitignore that keeps your repository free of files that should never be committed.
How to use it
Browse the templates, which are grouped under Languages, Frameworks, IDEs, OS and Tools. Click any template to add it to your selection; click again to remove it. Selected templates are highlighted and immediately merged into the live preview at the bottom, each section clearly labelled with a comment so you can see where its rules come from.
When you are happy with the combination, use Copy to put the contents on your clipboard, or Download .gitignore to save the file directly. Drop it into the root of your repository and Git will start ignoring the matching files right away.
Tips for using .gitignore
Mix and match freely - a typical web project might combine a language such as Node.js, a framework such as Next.js, your editor such as VS Code, and your operating system such as macOS or Windows. The generated rules are widely used community defaults, but you can always edit the result to add project-specific paths. Remember that .gitignore only affects untracked files: if a file is already committed, you must untrack it separately before Git will ignore it.