git - How do I squash two non-consecutive commits? -
i'm bit new whole rebasing feature within git. let's made following commits:
a -> b -> c -> d afterwards, realize d contains fix depends on new code added in a, , these commits belong together. how squash a & d , leave b & c alone?
you can run git rebase --interactive , reorder d before b , squash d a.
Comments
Post a Comment