I have two git branches, “A” and “B”, and commits numbered 1 thru 8. My history looks like this
1 -> 2 -> 3 -> 4[A] -> 5 -> 6 -> 7 -> 8[B]
I want to change it so my history looks like this:
1 -> 2 -> 3 -> 4 -> 5 -> 6[A] -> 7 -> 8[B]
That is, I want to move the head of branch A from commit 4 to commit 6.
What commands do I use to do this?
You can run: