首页 > 其他 > 详细

git找不到远程库问题

时间:2019-05-09 18:52:31      阅读:243      评论:0      收藏:0      [点我收藏+]

git报错:
Couldn‘t find remote ref XXXX (gitlab报错)
XXXX does not appear to be a git repository Could not read from remote repository(github报错)
git报找不到远程库错误,无法pull和push代码

解决办法:
1.查看远程库连接:git remote -v
发现远程库连接错误,需要重新建立关联
2.清除远程库连接 :git remote rm origin
3.重新建立远程库连接: git remote add origin XXXX
(XXXX为远程库url地址)
搞定啦!

git找不到远程库问题

原文:https://www.cnblogs.com/wollow/p/10840016.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!