124

更新被拒绝,因为您当前分支的尖端在提示后面:它的远程对应部分。集成远程更改。

我试图将本地 octopress 博客推送到远程分支。但它上面的说法是错误的。

另一个是:我是否必须管理或推送本地更改到源或源分支。?

当我执行 username.github.io 时,我会看到本地博客的远程版本。(我使用了 rake deploy 命令)但我没有在我的 username.github.io 看到更新的博客。我对分支的来源和资源。

4

1 回答 1

84

You need to merge the remote branch into your current branch by running git pull.

If your local branch is already up-to-date, you may also need to run git pull --rebase.

A quick google search also turned up this same question asked by another SO user: Cannot push to GitHub - keeps saying need merge. More details there.

于 2014-08-12T11:38:43.497 回答