Skip to main content
>_devtools

.gitattributes Generator and Explainer

Generate a .gitattributes for line endings, binary files, Git LFS, linguist overrides, and export-ignore, or paste one to have each attribute explained.

Generates common .gitattributes rules and explains attributes in an existing file. Choose a preset, review the generated lines, or switch to the explanation mode.

Example

Input
Normalize text files

Output
* text=auto
*.png binary

Limits and behavior

  • Review generated patterns against your repository before committing.
  • Git LFS patterns require Git LFS in each clone.