I use git-crypt to encrypt files stored in a repository. Here's how:
Summary
git-crypt init
: Setup the repo for the first timesecret* filter=git-crypt diff=git-crypt
in.gitattributes
: Enable for all files beginning withsecret
git-crypt status
: Check encryption status of files