【发布时间】:2013-03-05 23:00:38
【问题描述】:
我承诺并推动。
然后其他人更改了我的分支中的某些内容,提交并推送。 我试图拉动,因为我想得到这些改变。
结果:
From servername
3de3ee5..4db9ed8 Andrea -> origin/Andrea
You asked me to pull without telling me which branch you
want to merge with, and 'branch.Andrea.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
问题是我不明白这个解释。
我的分支名称肯定是Andrea,但是,git pull andrea 也不起作用。
怎么拉?
【问题讨论】:
-
git pull origin Andrea
-
我猜在推送时,您并没有真正将推送的分支设置为本地分支的“上游”。尝试
git branch -u origin/Andrea Andrea,然后再次拉动。也就是说这只是一个猜测,您应该看看是否可以为我们提供重现您提到的错误的步骤。 -
你看过stackoverflow.com/questions/7388278/… 吗?看起来很相似。
-
谢谢,问题已回答。
-
@newnewbie 不要忘记将您的问题标记为已回答或关闭它