About .gitignore Generator
A .gitignore file lists path patterns that Git should leave untracked, such as dependencies, build output, and local settings. This generator joins short built-in templates for nine targets: Node.js, Python, PHP and Laravel, Java, Go, Windows, macOS, VS Code, and JetBrains IDEs, each under a comment header. The templates cover the most common entries only and are shorter than the full github/gitignore collection.
How to use .gitignore Generator
- Fill in "Node.js", "Python", "PHP / Laravel" and "Java", and the other options.
- The result appears below and updates as you type.
- Copy the result with the copy button, or download it as a file where that is offered.
Questions about .gitignore Generator
Why is a file still tracked after I add it to .gitignore?
The ignore file only affects untracked files. If a file was already committed, remove it from the index with git rm --cached followed by the path, then commit. It stays on disk but is no longer tracked.
Runs in your browser. Page last updated .