3
我接过来一看四周,却没有看到这个确切的回答过的问题,所以我来到这里:混帐拉branch_1并合并到当前分支同时
git checkout master
git checkout -b release1
git checkout -b feature1
git checkout -b feature2
我做feature1
工作,别人做在feature2
工作,两者都推到原点
git checkout -b feature1
git pull
git checkout -b feature2
git pull
问题1:我能拉从feature1
和feature2
各自的地方分支机构起源的最新无需逐个检查出来,和他们拉Ë分开?
继续沿。 。 。
git checkout release1
git merge feature1
git merge feature2
其他人可以在feature2
上工作。
问题2:我想将最新的原产地feature2
合并到我当前的release1
分支中,而无需切换分支来拉动它,然后再次切换以合并它。这可能吗?
转换分支有什么问题?除了在你想要的分支上工作以外,没有其他办法可以进行合并或合并。 – CharlesB 2012-04-16 22:13:34
谢谢查尔斯。我只是觉得同时更新一个分支合并它会很灵活。 – Geremy 2012-04-16 22:47:15
请使用@author让他得到通知(我不使用它,因为你会被通知为海报) – CharlesB 2012-04-16 22:57:55