【git常见错误与操作】git refspec master does not match any
git refspec master does not match any
出现这个问题 有可能是分支不对
以上两个,第一个是成功的,第二个是失败的
原因:
图二中,是根据网上教程直接输入
git push origin master
(上图是教程中的图)
但是实际上应该如图一那样,将master改为自己的分支,如我的这个就是蓝色字体的main
注:上传github方式
在github上创建项目
使用git clone https://github.com/xxxxxxx/xxxxx.git克
原创
2022-03-10 13:02:11 ·
266 阅读 ·
0 评论