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地址)
搞定啦!

SRE实战 互联网时代守护先锋,助力企业售后服务体系运筹帷幄!一键直达领取阿里云限量特价优惠。
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄