error: src refspec master does not match any

 

原因分析:

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

解决办法:

 
$ touch xxx
 
$ git add -A .
 
$ git commit –m ’xxx’
 
$ git push origin master

 

posted @ 2020-09-20 11:21  igoodful  阅读(795)  评论(0)    收藏  举报