當我從不是主分支的git pull
時,我得到以下響應。使非主分支從主分支
你問我拉不告訴我,你要合併 用,並在您的配置文件不 沒有告訴我「branch.not_master.merge」,無論是哪個分支。請在命令行中指定要在 上使用哪個分支,然後重試(例如'git pull ')。
我想要配置的是讓這個分支接受來自主機以及它的遠程分支的拉。
有沒有可能這樣做?
例如
//on a branch A that is not master.
git pull master //pull from remote HEAD and merge without warning
git pull //pull from A and merge
請參閱:http://stackoverflow.com/questions/7388278/git-pull-you-asked-me-to-pull-without-telling-me-which-branch-you-want-to-merge 它給出了一個很好的方法來解決這個問題 – gardeniaxy 2012-10-17 10:55:21