ssh-keygen -t ed25519 -C "your_email@example.com"
If you are on Windows, do not rename the file
Enter file in which to save the key (~/.ssh/id_ed25519):
Give it a password
Start the agent
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
cat ~/.ssh/id_ed25519.pub
clip < ~/.ssh/id_ed25519.pub
Copy the contents of the .pub file displayed in the terminal to your clipboard
Paste the contents into your account -> settings -> ssh keys
ssh -T git@github.com
git config --global gpg.format ssh
git config --global user.signingkey ~/.ssh/id_ed25519.pub
git config --global commit.gpgsign true
- preferences > settings > gpg > enable commit signing with gpg