解决:github上传时出现error: src refspec master does not match any

Posted dinphy

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决:github上传时出现error: src refspec master does not match any相关的知识,希望对你有一定的参考价值。

原因分析

  引起该错误的原因是,目录中没有文件,空目录是不能提交上去的

解决方法

touch README
git add README 
git commit -m first commit
git push origin master

 

以上是关于解决:github上传时出现error: src refspec master does not match any的主要内容,如果未能解决你的问题,请参考以下文章