美文网首页
使用git push时出现error: src refspec

使用git push时出现error: src refspec

作者: jrg陈咪咪sunny | 来源:发表于2019-04-10 15:57 被阅读0次

错误:error: src refspec mater does not match any.
error: failed to push some refs to 'git@github.com:ouyangbeibei/resumer.git'

image.png
方法解决:
git add .
git commit -m "new"
git push
image.png

push就成功了(it add . 会监控工作区的状态树,使用它会把工作时的所有变化提交到暂存区,包括文件内容修改(modified)以及新文件(new),但不包括被删除的文件.)

相关文章

网友评论

      本文标题:使用git push时出现error: src refspec

      本文链接:https://www.haomeiwen.com/subject/ncfoiqtx.html