I'm having an issue while rebasing git commits. The problem is:
pick A
pick B <- mine
pick C
pick D
pick E <- mine
pick F <- mine
I want to squash all my commits into one. I planned to do something like:
pick A
pick C
pick D
pick B <- mine
squash E <- mine
squash F <- mine
But that didn't work because if I execute this git rebase
, the commmit A, C and D would be mine as well. If I just delete the lines from A to D, leaving just:
pick B <- mine
squash E <- mine
squash F <- mine
the commits A, C and D will be deleted. How can I handle this?
Thanks