Developer tool · Git

Gitignore Builder

Pick the kinds of project you have, add your own patterns, and test real paths to see exactly what Git will ignore.

  • 12 presets
  • Live path tester
  • Last match wins
  • Runs in your browser

1 · Presets

2 · Your own patterns

3 · Your .gitignore

.gitignore

4 · Test paths

One path per line from the repository root. End a folder with /.

Good to know

Patterns do not remove files Git already tracks, and they do not erase secrets from commit history. To stop tracking a file that is already committed, remove it from the index first. Matching follows gitignore rules: the last matching line wins, a leading / anchors to the root, a trailing / matches folders only, and a file inside an ignored folder cannot be re-included. Character classes and escapes are supported; check unusual patterns with git check-ignore.

Using Gitignore Builder

Combine practical Node, Python, build-output, OS and environment-file presets with your own ignore patterns.

  1. Pick the presets that match your project.
  2. Add your own patterns, or open an existing .gitignore.
  3. Type paths under Test paths to see which are ignored and by which line.
  4. Copy or download the .gitignore.

Example

coverage/
*.log

Questions & answers

What does this tool do?

Combine practical Node, Python, build-output, OS and environment-file presets with your own ignore patterns.

What should I check before using the result?

Patterns do not remove files already tracked by Git or erase secrets from commit history. Review before use.

Is there an upload or installation?

Processing runs in a local browser worker with no processing upload. No account or installation is required. Website ads and analytics follow the site privacy policy.

What input sizes are supported?

Each input supports 250,000 UTF-16 units and UTF-8 files up to 500 KB. Jobs stop after 15 seconds. Report previews show 200 rows; downloaded reports include all computed rows.

Will my work be saved?

No automatic storage is used. Download the result and report before leaving. Changing input invalidates previous output.

Help improve this tool

Report a problem or suggest an improvement

Describe the issue without pasting private tool input. Feedback goes to our admin inbox.

Find another tool · Read practical guides