src refspec xxx does not match any 错误处理办法
来源:互联网 发布:apache phoenix 编辑:程序博客网 时间:2024/06/06 08:29
在我们使用Git往GitHub上面push自己项目代码的时候往往会遇到上面的问题,其实解决方法很简单
初始化仓库
在项目文件夹下右键鼠标打开Git Bash
,输入代码:
git init
初始化项目成功
添加远端,即远程库
在Git Bash
下面继续输入代码:
git remote add xxx(远端名) git@github.com:xxx/xxx.git
创建远端成功
创建本地库分支并切换到当前分支
在Git Bash
下面输入代码:
git checkout -b xxx(分支名)
创建分支并切换成功
提交代码到本地库
这里建议使用Tortoise Git工具直接提交代码到本地库当前分支
提交成功
Push代码到远端
最后,在Git Bash
下面输入代码:
git push xxx xxx
OK,代码提交成功
以上是我个人使用的解决方法,方法不唯一,仅供参考,转载麻烦注明出处
查看更多文章,请点击进入个人博客
0 0
- src refspec xxx does not match any 错误处理办法
- Git:错误:error:src refspec master does not match any
- git src refspec ~ does not match any
- error: src refspec master does not match any. error: failed to push some refs to xxx
- GIT问题: error:src refspec master does not match any
- error: src refspec master does not match any.
- 【git】error: src refspec master does not match any.
- GIT问题,error:src refspec master does not match any
- error: src refspec master does not match any.
- error: src refspec origin does not match any.问题解决
- iOS_调试_error: src refspec master does not match any.
- github上传error: src refspec master does not match any
- git error: src refspec dev does not match any
- error: src refspec master does not match any
- error:src refspec master does not match any
- Git常见错误与操作:error: src refspec master does not match any解决办法
- Git常见错误与操作:error: src refspec master does not match any解决办法
- Git常见错误与操作:error: src refspec master does not match any解决办法
- 深入理解 Neutron -- OpenStack 网络实现
- 前端后台常见问题总结
- 批量获取内码
- 单个字符比较问题
- 修改 framework 代码的经验和踩过的坑
- src refspec xxx does not match any 错误处理办法
- Python之post接口
- noip模板整理
- P2615 神奇的幻方题解NOIP2015day1
- Python Web Development with Flask
- java异常详解
- scala的 apply方法和update方法
- Java核心卷学习笔记——接口
- 承认失败痛苦,单为了理想奋斗绝对值得