Home : File Types : GITATTRIBUTES File

.GITATTRIBUTES File Extension

File TypeGit Attributes File

DeveloperGit
Popularity
4.0 (10 Votes)
CategoryDeveloper Files
FormatText

What is a GITATTRIBUTES file?

Path-specific setting file used by Git, a version control system used for storing source code; contains attributes that dictate what settings Git applies to certain subdirectories or subsets of files; located in the root directory of the project; similar to the .GITIGNORE file.

More Information

The GITATTRIBUTES file enables you to perform a variety of functions such as commanding Git how it should diff (show changes between an index and a tree, changes between two trees, etc.) non-text files or having Git filter content before checking it into or out of Git.

A helpful attribute that will tell Git to treat a specific file extension as binary data:
*.extension -crlf -diff or *.extension binary

Here is an example of a GITATTRIBUTES file:
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp
*.sln merge=union
*.csproj merge=union
*.vbproj merge=union
*.fsproj merge=union
*.dbproj merge=union

# Standard to msysgit
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

FREE DOWNLOAD
Open over 300 file formats with File Viewer Plus.
Programs that open GITATTRIBUTES files
Windows
Git
Mac
Git
Linux
Git
Updated 1/16/2014

About GITATTRIBUTES Files

Our goal is to help you understand what a file with a *.gitattributes suffix is and how to open it.

The Git Attributes file type, file format description, and Mac, Windows, and Linux programs listed on this page have been individually researched and verified by the FileInfo team. We strive for 100% accuracy and only publish information about file formats that we have tested and validated.

If you would like to suggest any additions or updates to this page, please let us know.