将master中所做的更改合并到分支中

时间:2017-11-15 08:40:50

标签: git github

我一直在分支主人工作。我做了一些改变并做出了承诺。现在我想在其他分支开发中看到这些变化。在我在master中提交后,如何将master中的更改合并到其他分支。

1 个答案:

答案 0 :(得分:0)

我想这个网站here会有所帮助:

好吧,尽量不要成为混蛋。

git为您提供刀具和螺丝刀等基本工具。大量的命令能够满足您的需求。我在这里列出了一些方便的东西。

1.merge

git checkout <functional_branch>
git merge <master>

2.cherry挑选

git checkout <functional_branch>
git cherry-pick <commit>

3.rebase

git checkout <functional_branch>
git rebase <master> <functional_branch>

如果命令抱怨,请使用提供的网站。