This will get you a repository that automatically encrypts all files that you add to it and push.
- Get git and git-crypt and gpg
- Make sure you have a trusted private key in gpg
- Run
git-crypt init
in the root of your repo - Run
git-crypt add-gpg-user GPG_FINGERPRINT
- Create .gitattributes in the root of your repo
**/* filter=git-crypt diff=git-crypt