git上传时候出现错误

error: src refspec master does not match any.

error: failed to push some refs to '[email protected]



原因分析: 
目录中没有文件,空目录是无法提交的。 
解决方案: 
添加文件后进行提交。 
git add . 
git commit -m ‘init’ 
git push origin master

猜你喜欢

转载自blog.csdn.net/xxmxj/article/details/79894331