git错误解决办法

git学习地址https://www.liaoxuefeng.com/wiki/0013739516305929606dd18361248578c67b8067c8c017b000/0013752340242354807e192f02a44359908df8a5643103a000

执行

git push -u origin master

出现ERROR: 

Warning: Permanently added the RSA host key for IP address '13.229.188.59' to the list of known hosts.
ERROR: Permission to michaelliao/learngit.git denied to YaoLL.
fatal: Could not read from remote repository.

可能是链接了错误的远程库,这时候要先执行

git remote rm origin

来删除目前链接的远程库,再连接正确的远程库就可以正常提交了

猜你喜欢

转载自www.cnblogs.com/yaoliule/p/9109518.html