Skip to content
masterclass Buddy

Git · Option

.gitignore

A .gitignore file tells Git which untracked paths to ignore. Its patterns support directory-relative matching, wildcards, and exceptions with !.

Last updated

Syntax

.gitignore
$XDG_CONFIG_HOME/git/ignore
$GIT_COMMON_DIR/info/exclude

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • git rm --cached
  • git-check-ignore
  • core.excludesFile
  • $GIT_COMMON_DIR/info/exclude

Source: Git - gitignore Documentation. Checked 2026-11-03.