Prerequisites:
- Install gpgtools on macOS and git on Windows or
sudo apt-get install gpa seahorse giton Linux. - Open
notepad.exe - Open github.com/settings/emails
- Copy your Github email to notepad (ends with
@users.noreply.github.com) - Open
cmd.exe - Create new ssh key
ssh-keygen -t ed25519 -C "{email}"You can press enter in the prompts.
- Open both public and private key files in text editor and then paste them to
notepad.exe - Open github.com/settings/ssh/new
- Set title to
{Day/Month/Year}, value to public key value, key type tosigningKey - Configure
git
git config --global user.name "{username}"
git config --global user.email "{email}"
git config --global user.signingkey "C:\Users\{username}\.ssh\{key_name}.pub"
git config --global commit.gpgsign true
git config --global gpg.format sshThat's it ๐๐ผ๐