table of content
# create key-pair for GitHub
ssh-keygen -t ed25519 -C "my-mail@gmail.com" -f id_rsa_github
# Enter wihtout given a passphrase(I forgot always such password. better without setting them)
ssh-add ~/.ssh/id_rsa_github
# add pub ssh key
to GitHub
Go to https://github.com/settings/keys (opens new window) and add the pub ssh key
pbcopy < ~/.ssh/id_rsa_github.pub