跟着廖雪峰的教程学git远程仓库push失败解决办法
[L@localhost studygit]$ git remote add origin git@gitee.com:lyb94626/study-git.git
fatal: 远程 origin 已经存在。
[L@localhost studygit]$ git push -u origin master
[session-154ce19c] Auth error: DeployKey does not support push code
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
用的是gitee,本人啥也不会啥也不是,反正就是报错了,找了几个方法也没解决,记录一下,就是自己添加公钥的时候添加错了地方,不是添加“部署公钥”
解决办法:
添加个人公钥之后再次执行命令就可以了‘