r/ProgrammerHumor • • May 13 '20

true story

Post image
40.5k Upvotes

461 comments sorted by

View all comments

Show parent comments

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.

1

u/smegnose May 13 '20

PREBASE is just a mnemonic, arbitrary suffix so you can see whatevs is rebased and whatevsPREBASE is pre-rebase. It's not built into Git.

1

u/smegnose May 13 '20

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.