【问题标题】:Git Push Failed - 'push would result in a non fast forward-update'Git 推送失败 - '推送将导致非快进更新'
【发布时间】:2015-01-28 10:21:22
【问题描述】:

在 netbeans 中,在远程(Git)推送项目时,我收到错误“推送将导致非快速向前更新”

【问题讨论】:

  • 你用谷歌搜索过这个错误吗? Git 已经存在很长时间了。当然你不是第一个遇到这个问题的人。

标签: github


【解决方案1】:

别忘了先更新你的Netbeansbug 238398 表明,启动 NB8+,错误消息更明确(revision 2a7a1c67f8ea):

代替

Push would result in a non fast-forward update.
Open output to see more information.

它现在说:

Remote repository contains commits unmerged into the local branch.\n"
Do you want to pull the remote changes first?

这将帮助您触发git pull(如suggested here),在再次尝试推送之前需要它。

【讨论】:

    猜你喜欢
    • 2011-10-17
    • 2013-12-26
    • 2013-07-13
    • 2013-10-17
    • 1970-01-01
    • 1970-01-01
    • 2011-06-08
    • 2014-02-16
    • 1970-01-01
    相关资源
    最近更新 更多