你的分支领先于'origin / cherryPick'提交1次。为什么?

时间:2010-02-03 16:15:24

标签: git git-pull

我遇到git pull问题。我已经在本地回购中提交了我的更改。当我做git状态时,我会收到一条消息,说“你的分支超过'origin / cherryPick'提交1次”。当我尝试从远程存储库中取出时,我收到一条消息“已经是最新的。”。我想我错过了一些基本点。我已经粘贴了所有3个命令的下面的日志

wh-test $ git branch -a
alternate

* cherryPick

  master

 new

  squashBranch

  testBranch

  remotes/origin/HEAD -> origin/master

  remotes/origin/cherryPick

  remotes/origin/master

  remotes/origin/testBranch

 git status
# On branch cherryPick

# Your branch is ahead of 'origin/cherryPick' by 1 commit.
#

git pull origin cherryPick

From ssh://xxxx.dyndns.org/home/shopapp/wh-test

 * branch            cherryPick -> FETCH_HEAD

Already up-to-date.

任何帮助将不胜感激

1 个答案:

答案 0 :(得分:7)

我从概念上说,你遗漏的基本点是,如果你通过一次提交领先于远程仓库,那么远程仓库已经过时,而不是你。您需要将更改推送给他们,而不是拉动,因为没有什么可以拉动的。你有可能获得所有远程可用的提交,所以你确实是最新的。

相关问题