【发布时间】:2012-01-25 15:29:19
【问题描述】:
当我从非主分支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
【问题讨论】:
-
见:stackoverflow.com/questions/7388278/… 它给出了解决这个问题的好方法
标签: git