Use git-crypt & symmetric key kept inside a repo to encrypt some files in the repository Requirements GnuPG aka "gpg" git-crypt you may totally ignore complicated gpg manuals, but you must understand how git-crypt operates.