首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >拒绝git推流

拒绝git推流
EN

Stack Overflow用户
提问于 2010-10-16 02:35:23
回答 1查看 7.9K关注 0票数 6
代码语言:javascript
复制
To git@github.com:xxx/xxxxx.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:xxx/xxxxx.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of 'git push --help' for details.

当我试图推送一些更改时,我得到了这个错误。当我尝试从repo中获取数据时,我得到

代码语言:javascript
复制
From github.com:xxx/xxxxx
 * branch            master     -> FETCH_HEAD

我该怎么解决这个问题呢?到目前为止,基本上只有我一个人在回购,其他人只推了我两次。我需要做一个适当的合并吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2010-10-16 02:47:25

推送失败,因为您的refs落后于远程存储库的refs。fetch操作仅关闭远程存储库的内容和refs,但不会根据更改更新refs。因此,它不能解决阻止推送的问题。您需要执行一个pull操作或手动合并本地版本的远程refs。

票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3945080

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档