Lets suppose we have a branch A with the labeled commits C1 C2 C3 and C4. My need is to remove C2 and keep all the changes made by any other commit.
In a trivial way lets think to a single code file where in a commit C1 I have introduced the functionOne, in C2 the functionTwo and so on ... till C4.
My idea was to use cherry picking with C1 C3 and C4 but seems not working or not to be the best solution.
Does someone have an idea of how I could reach what I would like do? What could be the best solution to avoid/remove a commit from a branch keeping the ahead and behind commits changes?