git找不到远程库问题


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


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM