2013-07-05 93 views
0

我添加了一个文件到主分支(提交),当我想增加另外一个文件:它说未能在主分支提交

! [rejected]  master -> master (non-fast-forward) 
error: failed to push some refs to 'https://github.com/XXXX/helloWorld.git' 
hint: Updates were rejected because the tip of your current branch is behind 
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull') 
hint: before pushing again. 
hint: See the 'Note about fast-forwards' in 'git push --help' for details. 

我确实有这个问题,我不知道一个道理。请告诉我为什么我看到这个问题,我该怎么办?

谢谢

+1

它说在再次推动之前进行拉动。你尝试过吗? – vgoff

+0

是的,我做到了,但没有成功 – star

+0

有什么信息?没有成功可能意味着很多事情。该计划的任何反馈?你有没有遇到冲突? – vgoff

回答

0

您试图推动更改不严格在原始分支前面的分支。

Local: A -> B -> C 
Remote: A -> B -> D 

您将需要拉动远程更改(按照错误消息的指示)。如果合并成功,你可以推

相关问题