29  How-to clone the Git Repository

Here we will configure a local copy of the source code.

git clone git@git.gesis.org:ilcm/orc2.git

29.1 Decrypt Secret Files

Passwords are kept encrypted using git-crypt. Follow the Installation instructions at Chapter 30.

cd orc2
cat .git/config
[core]
        repositoryformatversion = 0
        filemode = true
        bare = false
        logallrefupdates = true
[remote "origin"]
        url = git@github.com:gesiscss/orc.git
        fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
        remote = origin
        merge = refs/heads/master

Use

git-crypt unlock GESIS-Notebooks/orc2/git_crypt_secret_key

to add the a couple of instructions to .git/config.

Important

git_crypt_secret_key is stored on the NextCloud server.

Note

Use git-crypt status to check for errors.

Note

Use git-crypt lock to re-encrypt the files.