![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
经验
文章平均质量分 62
温逗死
一名假装努力的小学生
展开
-
git push 大坑,错误error: src refspec master does not match any. error: failed to push some refs to
今天本来想把内容上传到git仓库去,但是折腾了好久一直报错。error: src refspec master does not match any error: failed to push some refs to 最后原来是github更新了,现在github的默认分支为main,但是,我一直认为是master,所以,在提交时,需要提交到main,而不是master。使用:git push origin main,即可。汇总一下今天一天查到其他人遇到该问题原因:本地git仓库目录下为空原创 2022-04-14 21:24:23 · 15474 阅读 · 23 评论 -
使用Git上传项目到GitHub(详细版)
初次使用git上传到GitHub上原创 2022-02-25 16:49:51 · 5220 阅读 · 3 评论