Skip to content
littlekit.app
All tools

Gitignore builder

Combine project presets and custom rules with a local path-matching preview and downloadable ignore content.

Custom patterns
One relative path per line. End directory paths with /.
Ignore rule preview
Generated .gitignore content
# Node.js
node_modules/
dist/
coverage/
.next/
*.log
.env
.env.*
!.env.example

# macOS
.DS_Store
._*
PathResultRule
node_modules/package/index.jsIgnorednode_modules/
src/index.jsIncludedNo matching rule
.envIgnored.env
.env.exampleIncluded!.env.example
.DS_StoreIgnored.DS_Store

10 rules. Export contains every rule; sample paths are only a preview.

Processed on your device

How it works & useful details

How it works & supported syntax

Combine small editable starter presets with custom rules for one root .gitignore. The local path preview supports literals, *, ** as a complete path segment, ?, /, comments and ! negation. Character classes and backslash escapes are unsupported. Last matching rules win; excluded parent directories cannot be bypassed by a child negation.

Only untracked paths are affected by Git ignore rules. This tool does not inspect your repository or other ignore sources. Up to 100 rules and 30 sample paths. The download is named gitignore.txt; save or rename it to .gitignore in your project root.

Local workspace

Your input stays in this page. These tools calculate or process text; they do not run commands, start containers, contact servers or change settings on your device.

Previews pause above 20,000 combined characters. Use the action to process the full supported input. Exports contain the complete result within the tool’s stated limits.