原因:git clone 項目時,使用 的https而不是ssh
解決:將https改成clone
1.查看clone 地址:
git remote -v(若地址是以https開頭,就繼續(xù)執(zhí)行第2-第5步,否則直接進(jìn)入第6步)
2.移除https的方式
git remote rm origin
3.添加ssh方式
git remote add origin 這里是ssh方式地址(如下圖)

ssh.png
4.查看是否修改成功:
git remote -v(若地址是以git開頭就成功了)
5、生成SSH keys命令
ssh-keygen -t rsa -C "這里是你github上的郵箱"
(一直enter,里面有id_rsa.pub保存路徑,第6步用到)
6.copy ssh
找到保存路徑,打開id_rsa.pub即是
eg:
我的window:
cd c://users/fusilin/.ssh
type id_rsa.pub