File tree 2 files changed +4
-8
lines changed
2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -30,6 +30,7 @@ Specify files to encrypt by creating a .gitattributes file:
30
30
31
31
secretfile filter=git-crypt diff=git-crypt
32
32
*.key filter=git-crypt diff=git-crypt
33
+ secretdir/** filter=git-crypt diff=git-crypt
33
34
34
35
Like a .gitignore file, it can match wildcards and should be checked into
35
36
the repository. See below for more information about .gitattributes.
@@ -148,14 +149,9 @@ specifying merely a directory (e.g. `/dir/`) is NOT sufficient to
148
149
encrypt all files beneath it.
149
150
150
151
Also note that the pattern `dir/*` does not match files under
151
- sub-directories of dir/. To encrypt an entire sub-tree dir/, place the
152
- following in dir/.gitattributes:
152
+ sub-directories of dir/. To encrypt an entire sub-tree dir/, use `dir/**`:
153
153
154
- * filter=git-crypt diff=git-crypt
155
- .gitattributes !filter !diff
156
-
157
- The second pattern is essential for ensuring that .gitattributes itself
158
- is not encrypted.
154
+ dir/** filter=git-crypt diff=git-crypt
159
155
160
156
161
157
MAILING LISTS
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ encrypt all files beneath it.
153
153
Also note that the pattern ` dir/* ` does not match files under
154
154
sub-directories of dir/. To encrypt an entire sub-tree dir/, use ` dir/** ` :
155
155
156
- / dir/** filter=git-crypt diff=git-crypt
156
+ dir/** filter=git-crypt diff=git-crypt
157
157
158
158
Mailing Lists
159
159
-------------
You can’t perform that action at this time.
0 commit comments