on-internet
← Community

Making two branches identical

Stack Overflow ·

I have two branches - A and B. B was created from A. Work on both branches continued in parallel. Work on branch A was bad (resulting in a non-working version) while work on branch B was good. During this time branch B was sometimes merged into branch A (but not the other way around). Now I want to make branch A identical to branch B. I can't use git revert because I need to revert too many commits - I only want to revert the commits that were done on branch A but not as a result of merging branch B. The solution I found was to clone branch B into a another folder, delete all the files from th

Comments

Sign in or sign up to comment and upvote.

No comments yet.