User Tools

Site Tools


git_attributes

This is an old revision of the document!


Overview

Basics of attributes, .gitattributes file.

Using attributes, you can do things like specify separate merge strategies for individual files or directories in your project, tell Git how to diff non-text files, or have Git filter content before you check it into or out of Git.

Add:

  • smudge and clean filters

Samples

Linux kernel

*.c   diff=cpp
*.h   diff=cpp

Xcode projects

*.pbxproj binary

Comparing Word files

*.docx diff=word
git_attributes.1552571286.txt.gz · Last modified: 2019/03/14 13:48 by rpjday