git 提交提示master does not match any


date: 2018-07-30
author: “ray”
tags:
- 技巧教程
- git


1. 报错信息

error: src refspec master does not match any.error: failed to push some refs to '[email protected]

2. 错误原因

xxxxxxxxxx 不详

3. 解决方案

touch READMEgit add README git commit -m 'first commit'git push origin master 

4. 网路上的其他说明

一般而言,建造repo 和本地仓库的流程如下:

 1、在github上创建项目​
 2、编辑项目
 3、git add . (将改动添加到暂存区)
 ​4、git commit -m "提交说明"5、git push origin master 将本地更改推送到远程master分支。

如果在github的remote上已经有了文件,会出现错误

5. 参考链接

http://www.cnblogs.com/renkangke/archive/2013/05/31/conquerAndroid.htmlhttps://www.jianshu.com/p/8d26730386f3https://stackoverflow.com/questions/21264738/error-src-refspec-master-does-not-match-any

猜你喜欢

转载自blog.csdn.net/leojuner/article/details/81286576