git push报错error: failed to push some refs to 'git@github.com:
2017-04-28 15:45
330 查看
$ git push -u origin master To git@github.com:xxx/xxx.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'git@github.com:zzzz/xxx.git' hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.1
2
3
4
5
6
7
8
9
1
2
3
4
5
6
7
8
9
![](https://oscdn.geek-share.com/Uploads/Images/Content/201701/9cc493f1e15b23d0f4eaea0d0f8b35d0.png)
原因:
GitHub远程仓库中的README.md文件不在本地仓库中。
解决方案:
$ git pull --rebase origin master //表示将远程仓库的版本拉到本地合并 $ git push -u origin master //将合并后的版本推到远程
相关文章推荐
- git push报错error: failed to push some refs to 'git@github.com:
- git push报错error: failed to push some refs to 'git@github.com:
- git push报错error: failed to push some refs to 'git@github.com:
- error: failed to push some refs to 'git@github.com:
- failed to push some refs to 'git@github.com:songmengke/NotePadVMware.git'
- 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')
- error: failed to push some refs to git@github.com:damononliu/cv_python.git
- git报错- failed to push some refs to 'git@github.com:***********/***.git'
- git - error: failed to push some refs to 'https://github.com/xuzhezhaozhao/Practice.git' 解决办法
- git上传到一半最后报error:failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- 解决git error: failed to push some refs to 'git@github.com:
- [Git & GitHub] 解决办法:error: failed to push some refs to 'https://github.com/xxxx.git'
- error: failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- failed to push some refs to 'git@github.com:' gitHub push错误的解决办法
- failed to push some refs to 'git@github.com怎么办
- git push报错error: failed to push some refs to 'git@github.com:
- error: failed to push some refs to 'git@github.com:jack-don/elema_vue.git' hint: Updates were reject
- error: failed to push some refs to 'git@github.com:GoodMemery/mytest.git'
- git - error: failed to push some refs to 'https://github.com/.......git'' 解决办法
- error: failed to push some refs to 'git@github.com:xxxxxxxx.git'