我是靠谱客的博主 贤惠铃铛,这篇文章主要介绍解决: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的全部内容,更多相关解决:github上传时出现error:内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(41)

评论列表共有 0 条评论

立即
投稿
返回
顶部