在下面的例子中,如何将分支 2 与分支 1 合并?
使用 gitk --我的所有分支如下所示...(* 表示提交)
b0........ ...*...*...
| |
| |
b1 b2
|
|
b2.1
但我希望它看起来像
b1........ ...*...*....merge b1&(mergeb2&b2.1)
| |
| |
b2 -------merge b2&b2.1 |
| |
| |
|..........b2.1
我想说的是,我希望第一个分支在分支 2 中拥有我的最新功能。
using gitk --all my branches looks as following... (* means commits)
b0........ ...*...*...
| |
| |
b1 b2
|
|
b2.1
but what I want it to look like
b1........ ...*...*....merge b1&(mergeb2&b2.1)
| |
| |
b2 -------merge b2&b2.1 |
| |
| |
|..........b2.1
what I'm try to say, is that I want the first branch to to have my latest feature in branch 2.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你可以尝试去branch1拉取branch2和branch 2.1的代码,然后将代码推送到服务器
you can try go to the branch1 and pull the code of branch2 and branch 2.1, then you push the code to server