代码想提交到gitee上面,但是每次push都是提交到githug报错,该怎么修改


git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

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

先检查自己的远程仓库绑定的有哪些:

> git remote show origin

如果Push URL的地址不是gitee地址,就要切换远程仓库地址:

> git remote set-url origin <新的gitee远程仓库地址>

没权限

https://blog.csdn.net/qq_43768946/article/details/90411154

登一下githee,确定一下你的正确的用户名和密码