AGWA / git-crypt

Transparent file encryption in git
https://www.agwa.name/projects/git-crypt/
GNU General Public License v3.0
8.18k stars 475 forks source link

Recommend using '**' to encrypt entire directories #156

Closed yuvipanda closed 1 year ago

yuvipanda commented 6 years ago

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 commented 6 years ago

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

bentterp commented 4 years ago

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