git-rewrite-history - git fixup - How to modify a specified commit?

git rebase interactive / git

I usually submit a list of commits for review. If I have the following commits:

Lii



Answer #1

1) by creating new commit with changes i want..

r8gs4r commit 0

3) in interactive rebase recent commit will located at bottom. it will looks alike,

pick q6ade6 commit 3
pick vr43de commit 2
pick ac123d commit 1
pick r8gs4r commit 0

4) here we need to rearrange commit if you want to merge with specific one. it should be like,

parent
|_child

pick q6ade6 commit 3
f r8gs4r commit 0
pick vr43de commit 2
pick ac123d commit 1