初始场景:
A (master)
\
B - C - D (development)
合并后我想要的--squash:
A - E (master/development)
\ /
B - C - D
在分支master
上,git log
将是
commit E
Squashed commit of the following:
commit D
commit C
commit B
commit A
继续在分支上开发development
:
A - E (master)
\ / \
B - C - D F - G - H (development)
再次与壁球合并:
A - E - I(master/development)
\ / \ /
B - C - D F - G - H
在分支master
上,git log
将是
commit I
Squashed commit of the following:
commit H
commit G
commit F
commit E
Squashed commit of the following:
commit D
commit C
commit B
commit A
在分支development
上,git log
将是
Commit I
Commit H
Commit G
Commit F
Commit E
Commit D
Commit C
Commit B
Commit A
我想与压缩的提交合并,master
同时保持每个提交都在development
.
我不知道如何实现。我的问题是我不知道如何在第一次合并中D
指出,并且将包含而不是仅包含。E
I
B,C,D,E,F,G,H
F,G,H