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-cryptin.gitattributes: Enable for all files beginning withsecretgit-crypt status: Check encryption status of files