Reputation: 1311
I committed several files that I pushed like that on my dev computer:
C1-C2-C3-C4
And now on my prod environnement I do not want to pull the C2-C3 commits. I want directly go from C1 to C4. I do not want Git to apply changes mades on my files during C2 and C3.
Upvotes: 0
Views: 46
Reputation: 34457
An easy way to do this is
git log
to find the hash for the oldest commit you are interested ingit rebase -i 29385792875947534
(or whatever the hash is)Then delete the commits you are not interested (C2, C3) in and you will have the desired output
Upvotes: 1