Another tool worth looking into is git-gpg, which allows you to store encrypted git repositories on third-party / potentially insecure servers, but unlike this tool it stores all changes to source files as compressible textual deltas (a key reason for using git in the first place). The repository is encrypted remotely but the local version has no encrypted blobs inside.
https://github.com/rustyio/git-gpg
Other benefits include architectural simplicity and low footprint: it consists of a single Python script that you add to your executable path.