1

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?

user592419
  • 5,103
  • 9
  • 42
  • 67

1 Answers1

0

You can always roll back to an earlier commit using the hash. It's been answered in a bunch of places but this is as good as any: How to revert Git repository to a previous commit?

Community
  • 1
  • 1
Raydot
  • 1,458
  • 1
  • 23
  • 38