Gitignore Generator
Generate .gitignore files — the right exclusions for your stack.
How to use Gitignore Generator
- Pick your stack — language, framework, plus OS/editor layers.
- Copy the generated file and save it as .gitignore in the repo root.
- Commit it early — ideally the first commit, before junk enters history.
- Already-tracked files need git rm --cached — .gitignore alone doesn't untrack them.
What is Gitignore Generator?
A .gitignore generator produces the exclusion list for your stack: pick language, framework and OS, get the file that keeps node_modules/, vendor/, build outputs, .env secrets, IDE folders and OS junk (.DS_Store, Thumbs.db) out of version control.
The categories of never-commit: dependencies (reinstallable from lockfiles, enormous), build artifacts (regenerable, noisy in diffs), secrets (.env — committing credentials is a breach, not a mess), and machine-local files (IDE configs, OS metadata). Each stack has its canonical list; the generator knows them so you don't maintain them from memory.
About the Gitignore Generator
Select your stack — Node, PHP/Laravel, Python, and the editor/OS layers — and copy the combined .gitignore, assembled from the community-standard patterns per technology.
The entries that matter most: .env and friends (the security-critical line — a leaked .env in a public repo means rotating every credential in it, and scrapers find them in minutes); node_modules/ and vendor/ (the repo-bloat lines — dependencies belong to the lockfile); build dirs (dist/, build/, public/build); and the cross-cutting layer of IDE (.idea/, .vscode/) and OS (.DS_Store) noise that pollutes shared repos from individual machines.
Two mechanics worth knowing: .gitignore only affects untracked files — anything already committed keeps being tracked until git rm --cached removes it (the classic "why is .env still in my repo" answer); and patterns cascade — a repo-root file governs the tree, subdirectory files add local rules.