# gitattributes/gitattributes

A collection of useful .gitattributes templates

Repository: https://github.com/gitattributes/gitattributes
Canonical: https://ross.abutalabs.com/products/gitattributes
Language: Git Attributes
License: MIT
License Family: permissive
Topics: gitattributes, gitattributes-templates, git
Last push: 2026-07-22T18:17:25+00:00

## Health v2 (maintenance only)
Score: 74/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 93, release rhythm 35, longevity 100
- inputs: {"age_days": 5222, "days_push": 42, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3849, forks 595 (observed 2026-08-28T04:08:24.237571+00:00)

## What it is
A collection of ready-to-use .gitattributes templates for Git repositories, analogous to GitHub's gitignore templates. It includes a common template plus per-language rules and a check script for CI validation.

## Use cases
- normalize line endings across a git repository
- set up .gitattributes for a new project
- make GitHub language stats ignore generated files
- enforce gitattributes coverage in CI
- find templates for handling binary files in git

## When to choose
- you want curated, community-maintained .gitattributes rules instead of writing your own
- you need a CI check that every tracked file has a matching attribute rule

## When to avoid
- you need a tool that generates .gitattributes automatically rather than copy-paste templates
- your project has no need for line-ending or diff normalization rules

## Facets
- artifact type: dataset
- maturity: active
- function: version-control, developer-tools, configuration-management
- domain: developer-tools, version-control
- platform: cross-platform, cli
- tags: gitattributes, git-templates, line-endings, linguist

## Member repositories
- gitattributes/gitattributes (main) score 74

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:24.237571+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:25:59.037217+00:00, confidence not recorded.
  - readme: https://github.com/gitattributes/gitattributes (fetched 2026-08-28T04:08:24.237571+00:00, sha 409c75b73ac3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
