Document how to exclude .gitattributes from encryption

This commit is contained in:
Andrew Ayer
2019-05-02 12:52:54 -07:00
parent 8618098bcc
commit ce716b130f
2 changed files with 12 additions and 0 deletions

6
README
View File

@@ -153,6 +153,12 @@ sub-directories of dir/. To encrypt an entire sub-tree dir/, use `dir/**`:
dir/** filter=git-crypt diff=git-crypt
The .gitattributes file cannot be encrypted, so make sure wildcards don't
match it accidentally. If necessary, you can exclude .gitattributes from
encryption like this:
.gitattributes !filter !diff
MAILING LISTS