Gitignore Generator
Builds a .gitignore from templates for languages, frameworks and editors, and checks the finished file: what gets ignored and where the errors are.
Popular
.gitignore
Errors in the file
No errors found.
Paths
| Path | Result | Rule that matched |
|---|
Rules have no effect on files Git already tracks. If such a file is already in the repository, remove it from there while keeping it on disk:
Find a language, framework, editor, or operating system by name and click it: the file assembles instantly. Duplicate rules from different templates are removed, and conflicting rules are listed under the file.
Checking your own .gitignore
Paste the file and the paths from your project. For each path the page shows whether Git ignores it and which rule decided it, like the git check-ignore -v command. Write a folder path with a "/" at the end.
Common mistakes
- a comment after a rule: in the line
.env # secretsGit treats "# secrets" as part of the name, and .env gets into the repository; - a backslash: Git reads
build\outas buildout; - a file inside an ignored folder cannot be restored: after
logs/the rule!logs/keep.txtdoes not work. Writelogs/*instead oflogs/; - a space at the beginning of a line becomes part of the name, and Git trims spaces at the end.
The file is already in the repository
.gitignore rules do not affect files that Git already tracks. Remove such a file from the repository while keeping it on disk with git rm --cached path, then make a commit.
Rate this tool
Help us get better
Tell us what was missing.
Other tools
JSON Formatter
Format and repair JSON in the browser, flagging duplicate keys and long numbers
Regex Tester
Regex testing with a plain-language breakdown and hang protection
JWT Decoder
JWT parsing with fields explained and signature verification
CSV to JSON
A table to JSON with honest types and a reverse check
JSON to CSV
JSON to a table for Excel, with verification and formula protection
SQL Formatter
A readable query layout, verified against the source, with risky spots flagged
XML Formatter
Readable XML, errors explained with a hint, verified against the source
XML Validator
Markup, XSD schema, sitemap, YML and RSS rules, with the path to each error