.gitignore Generator

Generate a .gitignore file by selecting your language and frameworks. Templated from GitHub's gitignore repo.

Select templates

Choose one language/framework — templates are merged together. All templates bundled locally.

Output — .gitignore

About .gitignore Generator

A .gitignore file tells Git which files and directories to leave untracked, so generated artifacts and local environment files never end up in your repository. This tool builds one from maintained community templates instead of hand-writing ignore rules.

Add it when you initialize a project, ideally before the first commit, to keep node_modules, build output, and secrets like .env out of version control. Note that .gitignore only affects untracked files — if a file was already committed, run git rm --cached <file> to stop tracking it without deleting it locally.