Skip to content

Setting up Git

Check if you already have Git

Open a terminal and type git version

Install Git

  • Windows/Mac: Download from git-scm.com
  • Linux (RedHat/Fedora/Centos): sudo dnf install git
  • Linux (Debian/Ubuntu): sudo apt install git
  • WSL: Depending on installed distribution, pick one of the above.

Upgrade Git

Create an SSH keypair for pushing changes securely

  • Windows: Open "Git Bash"
  • Linux/Mac: Open a terminal

ssh-keygen -t ed25519 -C your.name@crayon.com

Press [Enter] to use the default file-path for key storage.

Configure a password to protect the key.

Exporting an SSH public key

TODO

Importing an SSH public key on Github

TODO

Creating a GPG keypair (signing)

  • Windows: Open Git Bash
  • Linux/Mac: Open a terminal

Create a master key

gpg --full-generate-key --expert

Select option 9 (ECC and ECC) Select option 1 (Curve 25519)

Create a sign-only key

gpg --list-keys --keyid-format short

gpg --expert --edit-key <key-id>

addkey

Select option 10 (ECC (sign only))

Select option 1 (Curve 25519)

save

git config --global user.signingkey <signing-key-id>

Exporting a GPG publig key

TODO

Importing a GPG public key on Github

TODO