Does anybody know if there is something to seamlessly encrypt a git repository in case I don't trust the git server provider (say a VPS)?
Alternatively, you could just encrypt the directory that you push to remotely (probably /home/git in this tutorial), which seems like a cleaner solution: https://help.ubuntu.com/13.04/serverguide/ecryptfs.html
Was it super easy to understand & set-up?
# create a key file
dd if=/dev/urandom of=/etc/mykeyfile.key bs=512 count=1
# create the luks container
cryptsetup luksFormat /dev/sdf1 /etc/mykeyfile.key
# open the luks container
cryptsetup luksOpen /dev/sdf1 myluksvolume --key-file /etc/mykeyfile.key
# format the volume
mkfs.xfs /dev/mapper/myluksvolume
# mount the disk
mount /dev/mapper/myluksvolume /mnt/mymountpoint