git-crypt icon indicating copy to clipboard operation
git-crypt copied to clipboard

Recommend using '**' to encrypt entire directories

Open yuvipanda opened this issue 6 years ago • 2 comments

gitattributes now supports '' to mean 'entire subtree'. Using '*' instead of '' is an easy mistake to make with pretty bad consequences. Hopefully this added emphasis will make it less likely users make the mistake.

yuvipanda avatar Aug 08 '18 00:08 yuvipanda

Also, amazing project, <3 thank you so much.

yuvipanda avatar Aug 08 '18 00:08 yuvipanda

I would suggest taking it a step further:

**/.gitattributes !filter !diff
**/secret_* filter=git-crypt diff=git-crypt

The first line ensures that no .gitattributes file gets encrypted, regardless of which folder or subfolder it's in The second line is a simple way of making sure that any file with a name starting with "secret_" will get encrypted, regardless of which folder or subfolder it's in

bentterp avatar Oct 23 '19 08:10 bentterp