4
這是我的假樹:如何在rebase期間壓扁(與下一個合併)提交?
A---B---C---D (master)
我開始變基的互動從根:git rebase --root -i
併爲所有提交設置edit
命令。下面是例子:
e b83fa60 Initial content (A)
e 9a82ddf Update license information (B)
e fa8cb80 Rewrite readme (C)
e 0525f07 Update email address (D)
現在,我已經在B處重訂期間停止:
A---B---C---D (master)
^
在這一點上我想「合併」或「擠壓」 B與下一個C提交。我該怎麼做?
爲什麼要在編輯提交消息時合併或擠壓提交? – sfandler
因爲我已經開始從根開始約30次提交,我不想重新啓動該進程。無論如何,我只是想知道我能否做到這一點。 –