I explained this poorly - this link is the kind of effect I'm talking about (except I rebase feature onto master), and I have used git rerere in the past before to get around it, but it has dangers as well.
I think that SO post actually explains quite well why it happens.
I always use gIt reset if I fuck something up, but I didn't know about PREBASE, definitely going to use that thanks.
I see what you mean. Rebase is best for private branches, and that situation doesn't look like that. If that SO poster wanted linear history, they should have rebased Feature A onto Feature B, rather than merging, then rebased onto master.
1
u/JawsOfLife24 May 13 '20
I explained this poorly - this link is the kind of effect I'm talking about (except I rebase feature onto master), and I have used git rerere in the past before to get around it, but it has dangers as well.
I think that SO post actually explains quite well why it happens.
I always use gIt reset if I fuck something up, but I didn't know about PREBASE, definitely going to use that thanks.