Chinaunix首页 | 论坛 | 博客
  • 博客访问: 44088
  • 博文数量: 22
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 547
  • 用 户 组: 普通用户
  • 注册时间: 2013-04-25 09:32
文章分类

全部博文(22)

文章存档

2015年(6)

2014年(10)

2013年(6)

我的朋友

分类: 系统运维

2013-04-25 09:37:03

如题,由于在github上做了修改,在本地提交时出现了小小的错误:

error: failed to push some refs to 'git@github.com:dearjohn/tutorial.git'

To prevent you from losing history, non-fast-forward updates were rejected

Merge the remote changes (e.g. 'git pull') before pushing again.  See the

'Note about fast-forwards' section of 'git push --help' for details.


错误中已经给出了初步的解决方案:
1.本地运行:git pull。目的是将本地之前一个版本的代码,与github上保持一致
2.运行git push,再将本地代码更新到github上

小问题,大牛绕道。
阅读(278) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:Win7下ADB不能识别设备的可能原因

给主人留下些什么吧!~~