Git: how to melt a commit to another commit?
This question already has an answer here:
A lot of persons will said to you to do rebase --interactive
(which could be the solution) but if you plan to change some lines that had been changed in commits B or C, that will be a hell to use.
The another solution could be :
rebase --onto
to rebase only commit B and C on the newly created branch (that you could delete after) 上一篇: 如何修改现有提交中的特定单词?
下一篇: Git:如何融合提交到另一个提交?