Skip to content
masterclass Buddy

Git · Option

.gitattributes

.gitattributes defines path-specific rules for Git. Rules can control line endings, filters, diffs, merges, and archive behavior.

Last updated

Syntax

pattern attr1 attr2 ...

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

Subscribe
  • .gitattributes
  • $GIT_DIR/info/attributes
  • core.attributesFile
  • text
  • eol
  • working-tree-encoding
  • filter
  • diff

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