From 37b33b2a9baf4bd332fedca1eb822631250b8666 Mon Sep 17 00:00:00 2001 From: Florian Ludwig Date: Sat, 20 May 2017 13:54:57 +0200 Subject: [PATCH] add pattern example dir/**/* --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 1aeccc8..fda3f1d 100644 --- a/README.md +++ b/README.md @@ -141,11 +141,15 @@ encrypt all files beneath it. Also note that the pattern `dir/*` does not match files under sub-directories of dir/. To encrypt an entire sub-tree dir/, place the -following in dir/.gitattributes: +following in `dir/.gitattributes`: * filter=git-crypt diff=git-crypt .gitattributes !filter !diff +or in your root `.gitattributes`: + + dir/**/* filter=git-crypt diff=git-crypt + The second pattern is essential for ensuring that .gitattributes itself is not encrypted.