Ignore

.

Gitignore.

[Dir|**/]|[Path].

**/.

Match in all directories.

Empty line.

-void

#.

comment

Escape with \.

!

Inverse.

Tracked file

Added to ignore list will continue to be tracked.

Incase of a directory, new files will not be prompted to be tracked.

Thus, they need to be untracked.

Local only ignore.

.git/info/exclude.

Update cache for marked changes - already registered.

git update-index --skip-worktree <file-list>

Undo

Remove entry from .git/info/exclude.

git update-index --no-skip-worktree <file-list>
Updated: 2026 Aug 19