- 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
-
Backup private and public key and the used email in the following format:
{Day/Month/Year}
{email}
{private key}
{public key}
- 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 ssh
That's it 👍🏼😊