File format

.gitattributes

Assigns path attributes, including text normalization and checkout line endings. Existing files may need reviewed renormalization; avoid applying text normalization to binary files.

Formal Syntax & Structure

git syntaxgit
pattern attribute [attribute ...]

Working Example

Example Snippetgit
*.txt text eol=lf
Git Reference