.gitignore Generator
Combine technologies and editors to generate your .gitignore instantly. 100% in your browser.
Hand-curated base templates — for very specific cases, always review the result before committing.
Built by
Miguel Ángel Colorado Marin (MACM)
Built by
Miguel Ángel Colorado Marin (MACM)
Full-Stack Developer · Guadalajara, España
I develop web apps, digital tools and full projects — from design to deployment.
The .gitignore generator combines templates for technologies (Node, Next.js, React, Python, Java, Go, Rust, PHP, Ruby, Docker), editors (VSCode, JetBrains, Vim) and operating systems (macOS, Windows, Linux) to build a .gitignore file tailored to your project. Check the ones you use and the file is generated instantly, with a comment at the start of each section showing where it comes from. Download it as .gitignore or copy it to your clipboard. These are hand-written base templates with the common rules of each category: for specific cases in your project, always review the result before committing.
Features
- ✓16 templates: languages, frameworks, tools, editors and operating systems
- ✓Combine several at once, without repeating rules
- ✓Copy or download the file directly
- ✓Instant result
- ✓100% in browser, no uploads
How to generate a .gitignore?
- 1
Check your technologies
Languages, frameworks, tools, editors and operating systems you use.
- 2
Review the result
The file is generated instantly combining all sections.
- 3
Download or copy
Download it as .gitignore or copy it to your clipboard.
How the templates are combined
Each technology, editor or system you check adds its block of rules, always in this order: Node, Next.js, React, Python, Java, Go, Rust, PHP, Ruby, Docker, VSCode, JetBrains, Vim, macOS, Windows and Linux. Each block starts with a comment carrying its name, for example # Node.
Repeated rules are written only once, in the first block where they appear. For example, build/ is in both Node and React: if you check both, it only appears in the Node section. If every rule of a template was already in earlier blocks, that section is not generated. By default Node, macOS and VSCode are checked.
What each template includes
Node: node_modules/, npm, yarn and pnpm logs, dist/, build/ and several .env files. Next.js: .next/, out/ and next-env.d.ts. React: build/ and .env.local. Python: __pycache__/, *.py[cod], *.egg-info/, *.egg, .venv/, venv/, env/, .pytest_cache/, dist/ and build/. Java: *.class, *.jar, *.war, target/, .gradle/ and build/. Go: *.exe, *.test, *.out and vendor/. Rust: target/ and Cargo.lock.
PHP: vendor/, composer.lock and .env. Ruby: .bundle/, vendor/bundle, *.gem and log/*.log. Docker: *.log. macOS: .DS_Store, .AppleDouble, .LSOverride, ._* and Icon. Windows: Thumbs.db, ehthumbs.db, Desktop.ini and $RECYCLE.BIN/. Linux: *~, .directory and .Trash-*. VSCode: .vscode/* except extensions.json. JetBrains: .idea/ and *.iml. Vim: *.swp, *.swo and *~.
What it is not
The templates are reduced base sets written by hand, not the full templates from the github/gitignore repository. A .gitignore does not affect files that are already tracked: to stop tracking them you must remove them from the index with git rm --cached. Add your project's own rules at the end, such as local data folders or generated screenshots.
Copying and downloading
Copy sends the text to the clipboard and shows a message if the browser does not allow it. Download saves the result as .gitignore; some browsers strip the leading dot (gitignore or gitignore.txt), so rename it to .gitignore when placing it at the root of your project.
Frequently asked questions
Is my project's information uploaded to a server?
No. The file is generated by combining fixed templates directly in your browser, with no connection to any server.
Can I combine several technologies at once?
Yes, check all the ones you need and the file combines them into separate, commented sections.
Does it cover every possible case in my project?
It covers the most common base rules for each technology. If your project has specific generated files, add them manually after downloading.
Related tools
Embed .gitignore Generator on your site
Add .gitignore Generator to any web page with a simple iframe. Free, with attribution to miguelacm.es.
<iframe
src="https://miguelacm.es/embed/gitignore-generator?locale=en"
width="100%"
height="700"
frameborder="0"
allow="clipboard-write"
title=".gitignore Generator — miguelacm.es"
></iframe>View embed in new tab →