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

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -