Git Push失败 - '推送将导致非快速前向更新'

时间:2014-11-30 07:19:43

标签: github

在netbeans中,在远程推送项目(Git)时,我收到错误'推送会导致非快速更新'

1 个答案:

答案 0 :(得分: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)。