I am trying to do this the easy way and do less coding. I have the following commits in git
A->B->C->D
I want to basically remove commit C and keep commit D - and I am struggling to find a way how
I tried
git checkout -b myfix B
git cherry-pick D
git checkout master
git merge myfix
But of course commit C is still there since I merged.
Is there a way to say replace master with myfix branch?
Or even another approach to get
A->B->D->[new commit]