git push -u origin master出错

来源:2-4 代码关联Git远程仓库

劝退专业户

2021-03-12

git push -u origin master的时候
ssh: Could not resolve hostname gitee.com:xxxx: Name or service not known
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
修改host文件也没用

写回答

1回答

甲蛙

2021-03-12

远程仓库没关联成功,看一下远程仓库是否正确,用git remote -v,比如我的是慕课网的,如下:

//img1.sycdn.imooc.com/szimg/604b5652093b186310980163.jpg

另外,可以先看一下我的免费课:开发工具IDEA从入门到爱不释手,第6-1和6-2节

0
1
劝退专业户
非常感谢!
2021-04-20
共1条回复

Spring Boot+Vue3前后端分离,实战wiki知识库系统

一课掌握前后端最火框架,更有职场竞争力

2524 学习 · 1671 问题

查看课程