Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== 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. Links: * [[https://www.juandebravo.com/2017/12/02/git-filter-smudge-and-clean/|Smudge and clean filters]] ===== Samples ===== ==== Linux kernel ==== <code> *.c diff=cpp *.h diff=cpp </code> ==== Xcode projects ==== <code> *.pbxproj binary </code> ==== Comparing Word files ==== <code> *.docx diff=word </code> git_attributes.txt Last modified: 2019/03/15 07:45by rpjday