Configure options below — the preview updates in real time.

General Ignore Patterns

Files, paths, or wildcard patterns to ignore. Git applies standard globbing (*, ?, [ranges]) and double-asterisks (**) for deep matching.

General list of files, directories, or glob patterns to ignore (e.g. *.log, node_modules, **/*.txt).

Directory-Only Ignores

Patterns that ignore directories only (not regular files with the same name). A trailing slash is appended automatically in the generated file.

Directories to ignore. A trailing / is appended in the output.

Root-Anchored Ignores

Patterns that match only relative to the directory containing the .gitignore file. A leading slash is prepended automatically to prevent matching in subdirectories.

Patterns anchored to the .gitignore file location. A leading / is prepended in the output.

Exceptions (Negated Patterns)

Re-include files that were excluded by earlier rules. A ! prefix is prepended automatically. Note: Git cannot re-include a file if its parent directory is already excluded.

Patterns to explicitly track despite earlier ignore rules. A ! is prepended in output.

Comments & Annotations

Explanatory notes to annotate sections. A # prefix is prepended to each line.

Annotations or notes explaining why certain patterns are ignored.