提示git error: failed to push some refs to 'git@github.com:
来源:互联网 发布:网络稳定性测试软件app 编辑:程序博客网 时间:2024/05/24 16:16
今天重新安装了Git,远程推送到Github上进行测试,在GitHub上的仓库是存在的,在远程推送时总是出现以下错误:
$ git push -u origin masterTo git@github.com:xxx/xxx.git ! [rejected] master -> master (fetch first)error: failed to push some refs to 'git@github.com:xxx/xxx.git'hint: Updates were rejected because the remote contains work that you dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint: (e.g., 'git pull ...') before pushing again.hint: See the 'Note about fast-forwards' in 'git push --help' for details.
不要慌
这是因为你有远程库中的文件没有下载下来。所以你需要先运行
git pull origin master
然后你就看到了远程文件已经下载到你的工程里面并且自动合并了。
然后你需要在本地库中添加新文件并且提交。
然后你运行
git push -u origin master.
,
问题解决!!!!
阅读全文
0 0
- error: failed to push some refs to 'git@github.com:
- 提示git 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:
- 【git push报错error: failed to push some refs to 'git@github.com】
- git push报错error: failed to push some refs to 'git@github.com:
- failed to push some refs to 'git@github.com怎么办
- 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:
- error: failed to push some refs to 'git@github.com:GoodMemery/mytest.git'
- error: failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- error: failed to push some refs to git@github.com:damononliu/cv_python.git
- git上传到一半最后报error:failed to push some refs to 'git@github.com:yourname/repositoryname.git'
- Git提交数据失败 error: failed to push some refs to 'https://github.com/XXXXXXX/gif.git'
- Git 提交时报错 error: failed to push some refs to 'https://github.com/yibin94/shop.git'
- error: failed to push some refs to 'git@github.com:jack-don/elema_vue.git' hint: Updates were reject
- git push 失败 error:failed to push some refs to ...
- 在github上传项目遇到的问题(error: failed to push some refs to 'https://github.com/CrazyDony/text.git')
- 两个字符串连接
- jQuery自制手风琴效果增强版(附实现原理)
- 百度地图使用模拟器报错java.lang.IllegalArgumentException: No config chosen
- linux内核配置
- 重装电脑后,sqlserver各种不服
- 提示git error: failed to push some refs to 'git@github.com:
- linux必备软件合集
- Java heap space
- 【转】java异常
- js中将字符串转换成json的三种方式
- 教你使用windeployqt工具来进行Qt的打包发布
- 你或许不了解的C++函数调用
- java培训第三天
- 【Leetcode】Decode Ways 解码方式