#versioning #security

Git-Crypt

First of all: install git-crypt

→ Initialize an encrypted repository

see documentation

→ Work on a encrypted repository

Either import a gpg key ...:

git clone <the repos>
cd <the repos>
git unlock

...or use the symetric key (see below):

git clone <the repos>
cd <the repos>
git unlock /path/to/key

→ Export a gpg key

gpg --export-secret-keys YOUR_ID_HERE > private.key

→ Import a gpg key

gpg --import private.key
gpg --edit-key YOUR_ID_HERE
# type “trust”
# type “5”
# type “save”

→ Export a symetric key

git-crypt export-key /path/to/key

React ?

This page was last modified: