在自己电脑上安装好Git之后,在进行上传案例到github的仓库中时,

$ git push -u origin master
报错

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。

Please make sure you have the correct access rights
and the repository exists.

网上有一部分给出的解释是与github未连接成功

$ ssh -T git@github.com

但本人在输入之后提示

Hi flora0103!You're successfully authenticateu,but GitHub does not provide shell access。

证明是已经成功了的。

解决的方法是重新在输出一遍

$ git remote add origin git@github.com:yourname/youremail

$ git push -u origin master

 

 

扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄