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地址)
搞定啦!
网友评论