Git Attributes Resolver
Work out the attributes a top-level .gitattributes file gives one path, and which line decides each one.
Attributes file and path
Effective attributes
Warnings
| Attribute | State | Value | Deciding rule |
|---|
No attribute is named in this file, so the path has none.
Git decides each attribute independently: the last matching line wins, and later lines override earlier ones per attribute rather than per path. Patterns follow the same rules as .gitignore, except that negative patterns are forbidden here and a directory match does not reach the files inside it, so use dir/** instead of dir/. Only the top-level file is read, not .gitattributes files in subdirectories or $GIT_DIR/info/attributes. Everything runs in this page: no repository access, storage, uploads or network requests.