I was working on a big task on a my-branch branch which was create out of develop.
In the meantime, I was taking pulls from develop, thinking it was a good one.
After some time the develop branch was renamed to test.
Other developers were informed to make tests on the test branch.
I was informed that the develop branch was renamed to test, but I was not informed that I should start taking pulls (to merge) from master.
Then I started taking pulls from master.
Now my-branch has a lot of my work (good one), and a lot of tests - bad ones that should not be merged to master.
I need to:
- Remove from
my-branchall the commits that: are not mine && are not inmaster
In other words, I need to remove all the commits other did, and those commits were not merged with master. This means those commits were tests/trash.
How to do that?