About .gitignore
A .gitignore generator builds the file that tells Git which files and folders to ignore — build output, dependencies, logs, environment files and OS clutter. Pick your languages, frameworks and tools and it assembles a clean, combined .gitignore you can drop into your repository. It runs entirely in your browser.
How gitignore works
How to generate a .gitignore
- Select the languages, frameworks, editors and operating systems you use.
- The matching ignore rules are combined into one file.
- Copy or download it as
.gitignorein your project root.
Why use .gitignore
It keeps your repository clean by excluding files that should not be committed — node_modules, build folders, .env secrets, logs and editor/OS files — so your history stays focused on source code.
Combine multiple stacks
Most projects mix a language, a framework and an editor. Selecting several templates merges their rules so you do not miss anything.
Common uses
- Create a .gitignore for a new project
- Ignore node_modules, build and dist folders
- Keep secrets like .env out of Git
- Exclude editor and OS files
- Combine rules for multiple stacks
- Clean up an existing repository
- Standardise ignores across a team
- Avoid committing logs and caches
Frequently asked questions
How do I create a .gitignore file?
Select your languages and tools and the rules are combined into one file to copy into your project root.
Where does .gitignore go?
In the root of your Git repository (and you can add more in subfolders).
What should I ignore?
Dependencies, build output, environment/secret files, logs, and editor or OS clutter.
Can I combine several languages?
Yes — pick multiple templates and their rules are merged.
Will it remove already-tracked files?
No — .gitignore only affects untracked files; use git rm --cached to stop tracking existing ones.
Is anything uploaded?
No — the file is generated entirely in your browser.
Can I edit it afterwards?
Yes — it is plain text; add or remove rules as needed.
Is it free?
Yes — completely free with no sign-up.