{"id":13399578,"url":"https://github.com/gitattributes/gitattributes","last_synced_at":"2026-03-14T00:43:50.792Z","repository":{"id":3304822,"uuid":"4346803","full_name":"gitattributes/gitattributes","owner":"gitattributes","description":"A collection of useful .gitattributes templates","archived":false,"fork":false,"pushed_at":"2025-03-30T22:19:22.000Z","size":223,"stargazers_count":3527,"open_issues_count":16,"forks_count":601,"subscribers_count":61,"default_branch":"master","last_synced_at":"2025-04-27T20:05:48.582Z","etag":null,"topics":["git","gitattributes","gitattributes-templates"],"latest_commit_sha":null,"homepage":null,"language":"Git Attributes","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gitattributes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-05-16T12:39:06.000Z","updated_at":"2025-04-27T19:09:40.000Z","dependencies_parsed_at":"2023-12-16T02:42:59.848Z","dependency_job_id":"4cb1505a-19fd-4c01-a400-4897e61ac770","html_url":"https://github.com/gitattributes/gitattributes","commit_stats":{"total_commits":274,"total_committers":108,"mean_commits":2.537037037037037,"dds":0.7846715328467153,"last_synced_commit":"c9ac80d722a460609f3610e74ecdb503765c9cf5"},"previous_names":["alexkaratarakis/gitattributes"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitattributes%2Fgitattributes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitattributes%2Fgitattributes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitattributes%2Fgitattributes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gitattributes%2Fgitattributes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gitattributes","download_url":"https://codeload.github.com/gitattributes/gitattributes/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254010823,"owners_count":21999003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","gitattributes","gitattributes-templates"],"created_at":"2024-07-30T19:00:39.803Z","updated_at":"2025-12-16T19:39:50.892Z","avatar_url":"https://github.com/gitattributes.png","language":"Git Attributes","readme":"# A Collection of Useful .gitattributes Templates\n\nSimilarly to the [`.gitignore` Templates][gt], we're trying to build\ntemplates for `.gitattributes`.\n\n`Common.gitattributes` contains general exclusions that may apply to any project.\nConsider including them if they are applicable to your project.\n\nYou can use [this](https://richienb.github.io/gitattributes-generator) or [this](https://gitattributes.com/) handy dandy generator to generate your gitattributes files on the fly based on files inside of this repository.\n\n## CI step\n\nTo check if all files have a corresponding rule in .gitattributes, this script can be used:\n\n```sh\nmissing_attributes=$(git ls-files | git check-attr -a --stdin | grep 'text: auto' || printf '\\n')\n\nif [ -n \"$missing_attributes\" ]; then\n  printf '%s\\n%s\\n' '.gitattributes rule missing for the following files:' \"$missing_attributes\"\nelse\n  printf '%s\\n' 'All files have a corresponding rule in .gitattributes'\nfi\n```\n\nYou can also use the checked-in `./check.sh` which has more features.\nRun `./check.sh --help` for the available options.\n\n## Contributing\n\nPlease contribute by [forking][fk] and sending a [pull request][pr].\n\nAlso **please** only modify **one file** per commit. This'll\nmake merging easier for everyone.\n\nFor more information on gitattributes: [gitattributes(5)][g5] and for Github-specific grammar: [Linguist docs][gh]\n\n[gt]: https://github.com/github/gitignore\n[fk]: http://help.github.com/forking/\n[pr]: http://help.github.com/pull-requests/\n[g5]: https://www.git-scm.com/docs/gitattributes\n[gh]: https://github.com/github-linguist/linguist/blob/master/docs/overrides.md\n","funding_links":[],"categories":["Others","Git Attributes"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitattributes%2Fgitattributes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgitattributes%2Fgitattributes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgitattributes%2Fgitattributes/lists"}