At now i have these commits:
A -> B -> C -> D -> E -> F
How can i remove changes from C to E, and get these:
A -> B -> F
Thanks.
At now i have these commits:
A -> B -> C -> D -> E -> F
How can i remove changes from C to E, and get these:
A -> B -> F
Thanks.
in F:
git rebase -i B
and delete C,D,E from here. then save and quit.
It will create copy of commit F through
Removing commits is disastrous if history is published. Another approach could be create a branch off B (say my_branch) and selectively cherry pick commit F