由于一些参考,无法推送到远程回购

时间:2015-09-17 17:31:46

标签: git

我没有使用git的经验,所以我不完全确定为什么会收到此错误:

To https://github.com/bli1/data-trader.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/bli1/data-trader.git'
hint: Updates were rejected because a pushed branch tip is behind its remote
hint: counterpart. Check out this branch and integrate the remote changes
hint: (e.g. 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

我认为这是因为我承诺但我从未推过?

基本上,我目前的更改已经提交,由于过去的错误,我无法将它们推送到远程仓库。

1 个答案:

答案 0 :(得分:2)

这只是意味着有人推动了尚未集成的新变化。使用

git pull

整合它们