I accidentally committed to a wrong branch. The graph looks like this
----o--o-----o (master)
\
\
A--B--C--D (feature)
I want to move C and D to master without the changes in A and B. I want the graph to look like this
----o--o-----o (master)
\ \
\ C--D (other_feature)
\
A--B (feature)
is this possible? and how to do it also on remote?
Changes in A and B are not going to be merged so I don't care if the commits will be lost