I have three branches, one main and two branches I've been working off, A and B. I've kept main up to date with the origin and had pushed out A. Before pushing B, though, I made a mistake and rebased both A and main onto it. This means that the PR for B includes A.
So B now looks something like this: main --> A' --> B' (where A' is the extra commits in A not in main)
How do I reverse the effects and extract A' from B?
 
     
    