document updated 12 years ago, on Sep 24, 2012
If you want to store a Git repo that contains confidential information on a third-party site, but you don't trust them, how do you encrypt the Git repo that's on the remote side?
smudge / clean
git bundle, then encrypt
rsync with built-in encryption
You can rsync the .git/ directory just fine. There are some special variants of rsync that are designed to have the local copy unencrypted, but the remote copy encrypted:
- special variants of rsync that cause the remote copy to be encrypted