Amending a commit further down the stack and propagation of changes up the stack

51 Views Asked by At

I have a stack of git commits from oldest to newest:

com1
com2
com3

I want to modify something in com1 and have to propagate to com2 and com3. I would like to use interactive rebase. When I interactive rebase, should I select to edit just com1, or should I mark com2 and com3 as edit as well since I want the changes to be propagated? If I don't mark com2 and com3 as edit, what will happen, and does the answer change if there's a merge conflict or not?

0

There are 0 best solutions below