⚡ Developer · Client-side · No data sent to server
.gitignore Generator
Select your tech stack and instantly generate a clean, well-commented .gitignore file. Toggle the exact rule groups you need, preview the output, then copy or download. Everything runs in your browser — no files are uploaded.
Languages & Frameworks
CMS & Frameworks
Editors & IDEs
OS
Build & Misc
0 lines
Select options on the left to generate your .gitignore… About this tool
A .gitignore file tells Git which files and directories to exclude from version control. This generator lets you pick your exact tech stack and outputs a clean, commented .gitignore you can drop straight into your project root.
How .gitignore works
- Place the file in your repository root (or any subdirectory for path-specific rules).
- Each line is a pattern. Lines starting with
#are comments. - A leading
/anchors the pattern to the directory containing the.gitignore. - A trailing
/matches only directories. - Prefix a pattern with
!to un-ignore a previously ignored path. - Already-tracked files are not affected — run
git rm --cached <file>first if needed.
Tips
- Commit your
.gitignore— it helps every contributor on the project. - Never commit
.envfiles or secrets. Use.env.exampleas a safe template. - For machine-specific ignores that should not affect teammates, use
.git/info/excludeor a global gitignore at~/.gitignore_global. - Use
git check-ignore -v <file>to debug which rule is ignoring a file.