I have this situation : Working on some testBranch for some time and I wanted to sync with master so I did git checkout testBranch and git merge master/testBranch
So now my branch is synced with master but then I found out that I want to undo that merge and problem is that merge is done with fast forward and now my commit history is mixed with master commits and testBranch commits and I don't know how to revert to state before merge on my testBranch.
Thanks for any help
master/testBranch
located at the tip of yourtestBranch
or you've already managed to record several your own local commits on top of what has been merged? The way to recover heavily depends on this. – Emlynne