ssh-keygen
Look at whether the local has been key
cd ~/.ssh
This folder contains two files
id_rsa - private
id_rsa.pub - public
Without these two files, then you need to regenerate (available using the following command back to overwrite the original key)
1, first set up a user name and mailbox
git config --global user.name "******"
git config --global user.email "******"
Generate ssh keys
ssh-keygen -t rsa -C "*****@qq.com"
Continuous carriage return (if it is regenerated, the intermediate need to enter y
)