报错:
you do not have permission to push to the repository via HTTPS
1、打开终端,输入:
终端:ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
并执行三次回车,期间有输入电脑的密码
注意:xxxxx@xxxxx.com是你在git上的用户名
2、查看已经生成的公钥:
终端:cat ~/.ssh/id_rsa.pub
回车之后即可看到公钥
you do not have permission to push to the repository via HTTPS
终端:ssh-keygen -t rsa -C "xxxxx@xxxxx.com"
并执行三次回车,期间有输入电脑的密码
注意:xxxxx@xxxxx.com是你在git上的用户名
终端:cat ~/.ssh/id_rsa.pub
回车之后即可看到公钥