我有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.
Run Code Online (Sandbox Code Playgroud)
任何帮助,将不胜感激
我从概念上说,你缺少的基本点是,如果你通过一次提交超过远程仓库,那就是过时的远程仓库,而不是你.您需要将更改推送给他们,而不是拉动,因为没有什么可以拉动的.您有可能获得所有远程可用的提交,因此您确实是最新的.