我是靠谱客的博主 单身指甲油,这篇文章主要介绍git报错ERROR: Repository not found.的解决办法,现在分享给大家,希望可以做个参考。

大家在执行git时会报这样的问题

ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
具体例子如下
git报错ERROR: Repository not found.的解决办法

解决方案是

执行git remote set-url命令来修改remote URL

git remote set-url传递两个参数$1和$2

$1即remote name;例如,origin或者upstream
$2即new remote url。例如,git@github.com:cursrs366/git_test.git

git remote set-url $1 $2
git remote set-url origin git@github.com:courser366/git_test.git

执行git remote -v查看是否成功
git报错ERROR: Repository not found.的解决办法
或者执行具体命令查看
git报错ERROR: Repository not found.的解决办法

最后

以上就是单身指甲油最近收集整理的关于git报错ERROR: Repository not found.的解决办法的全部内容,更多相关git报错ERROR:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(129)

评论列表共有 0 条评论

立即
投稿
返回
顶部