Closed yuvipanda closed 1 year ago
Also, amazing project, <3 thank you so much.
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
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.