0
点赞
收藏
分享

微信扫一扫

fatal: ‘origin‘ does not appear to be a git repository fatal: Could not read from remote repository.

Spinach菠菜 2022-01-16 阅读 171
gitgithub

报错:

fatal: ‘origin’ does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
在这里插入图片描述

报错原因:没有关联或者添加错误关联

解决方法:关联远程仓库

git remote -v: 查看远程仓库详细信息,检查仓库名称和关联地址;
添加仓库关联:git remote add 仓库别名 仓库地址

在这里插入图片描述

在这里插入图片描述

git remote -v:    查看远程仓库详细信息,包括仓库名称,关联地址
git remote remove orign:删除orign仓库
git remote add origin 仓库地址:添加远程仓库地址
gti push -u origin master: 提交到远程仓库的master主干

一起进群交流学习吧!!!

在这里插入图片描述

举报

相关推荐

0 条评论