I have two branches, A and B. Those have deviated quite a bit over time, and trying to merge A and B results in a ton of conflicts. I don't actually need many things from B, and those things need to be in different places now.
So I'd like to make B look exactly like A - not a merge, no extra files, no file changes, literally like I'd just called git checkout -b B
while in A.
However, I don't want to lose B's history. What I want is for git to create a differential commit that shows what needed to change in B to make it look exactly like A.
Is there such a command?