2014-01-15 31 views

回答

6

你还没告诉混帐其远程分支合并到当前分支。假设你在一个名为feature的分支上,并且你想从origin/feature下拉。

运行

git branch -u origin/feature feature 

将设置origin/feature为当地feature分支的 “上游分支”。

在你.git/config你现在应该看到这样的事情(注意merge线):

[branch "feature"] 
     remote = origin 
     merge = refs/heads/feature 

现在你应该会自动能够pull从它。

+0

这非常有用! –