2013-03-17 36 views
2

我承诺并推送。Git pull不知道要合并哪个分支

其他人然后改变了我的分支,承诺和推动。 我试图拉,因为我想获得这些变化。

结果:

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也不起作用。 我该怎么拉?

+6

的git拉出身安德烈 – Eru 2013-03-17 15:52:18

+1

我猜测,推,当你真的不设置推分公司是当地一个“上游”。试试'git branch -u origin/Andrea Andrea',然后再拉。这就是说这只是一个猜测,你应该看看你是否可以提供我们的步骤来重现你提到的错误。 – millimoose 2013-03-17 15:55:13

+0

你看过http://stackoverflow.com/questions/7388278/you-asked-me-to-pull-without-telling-me-which-branch-you-want-to-merge-with?它看起来很相似。 – lmsteffan 2013-03-17 15:56:41

回答

0

以下为我工作:

$ git pull origin Andrea

+0

尽管此代码片段可能会解决问题,[包括解释](http://meta.stackexchange.com/questions/114762/explaining-entirely-基于代码的答案)确实有助于提高帖子的质量。请记住,您将来会为读者回答问题,而这些人可能不知道您的代码建议的原因。 – gunr2171 2014-11-11 18:46:24