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

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

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

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主干
一起进群交流学习吧!!!

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5704452.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存