关于git中出现的Repository not found解决方案

git连接远程仓库时,出现“ Repository not found"(无法找到远程仓库)的解决办法

如果电脑不是使用自己的电脑
需要前往 启动台>>> 钥匙串访问
在这里插入图片描述
找到关于git的信息进行删除
然后在命令行中重新设置用户名和邮箱

git config --global user.name  "username"   

git config --global user.email "email"

重新设置完后就可以进行操作了

在clone和pull都没问题的时候

git push时候出现Repository not found,git commit其他的都没有问题。

重新提交一下仓库地址就可以了

git remote set-url origin git@github.com:<仓库地址>
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐