当前位置: 代码迷 >> 综合 >> 解决:github上传时出现error: src refspec master does not match any
  详细解决方案

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

热度:16   发布时间:2023-10-31 08:54:34.0

原因分析

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

解决方法

git add README

git commit -m 'first commit'

git push origin master

  相关解决方案