git push 时报错error: failed to push some refs to ...
2015-07-10 16:59
513 查看
在使用git push 的时候老是报错:error: failed to push some refs to ...
error: failed to push some refs to 'https://github.com/xuelangcxy/web-client-for
-AQI-monitor.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.
报这个错误的原因是远程仓库与本地仓库的版本不一致导致的,
解决办法是先同步本地仓库,再使用git push
具体做法:
1、$ git pull http://github.com/xuelangcxy/web-client-for-AQI-monitor.git
(也可以使用$ git fetch 和$ git merge,与上面方法等价 )
同步成功后本地:
2、$git push 现在就可以正常使用了
error: failed to push some refs to 'https://github.com/xuelangcxy/web-client-for
-AQI-monitor.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.
报这个错误的原因是远程仓库与本地仓库的版本不一致导致的,
解决办法是先同步本地仓库,再使用git push
具体做法:
1、$ git pull http://github.com/xuelangcxy/web-client-for-AQI-monitor.git
(也可以使用$ git fetch 和$ git merge,与上面方法等价 )
同步成功后本地:
2、$git push 现在就可以正常使用了
相关文章推荐
- inotifywait 开启-r监听文件上限
- Grails边做边学入门篇[1]--------大家一起来动手建立工程和Domain
- cvReadTrainData
- svn冲突:skipped remains conflicted one or more files are in a state.
- New Valid Tracking Metric Now Available in Seller Central
- Contains Duplicate
- CoovaChilli-1.3.0编译时出现main-opt.c:781: error: ‘ptr’ may be used uninitialized in this function的解决方法
- Diesel powered certainly are a very hot favored around the globe
- Similarity in Elasticsearch: A Brief Introduction to the Similarity Models Available
- This file probably contains a syntax error."错误
- MFC 单文档中添加OnPaint
- 更新xcode6 运行报错 Command /usr/bin/codesign failed with exit code 1
- 操作系统(aix\redhat\suse)修改主机名方法
- 我对CONTAINING_RECORD宏的详细解释
- 1 对WinMain的理解
- hdu 5045 - Contest(2014 ACM/ICPC Asia Regional Shanghai Online )概率dp
- 安装配置fail2ban防止暴力破解
- HDU 2476 String painter(区间dp)
- editor dose not contain a main type
- "NO 3D support is available from the host"