SSH_GIT
一、Generating a new SSH key
1、Open Git Bash.
2、Paste the text below, substituting in your GitHub email address.
$ ssh-keygen -t ed25519 -C "1270001737@qq.com"
This creates a new ssh key, using the provided email as a label.
Generating public/private ed25519 key pair.
二、Adding your SSH key to the ssh-agent
start the ssh-agent in the background
$ eval ssh-agent -s
😂
Agent pid 59566
$ ssh-add ~/.ssh/id_ed25519
END
三、Adding a new SSH key to your GitHub account
$ clip < ~/.ssh/id_ed25519.pub
Copies the contents of the id_ed25519.pub file to your clipboard
In the user settings sidebar, click SSH and GPG keys.
Click New SSH key or Add SSH key.
In the "Title" field, add a descriptive label for the new key. For example, if you're using a personal Mac, you might call this key "Personal MacBook Air".
Paste your key into the "Key" field.