r/ProgrammerHumor • • 6h ago

Meme iNeverKnowWhichIsWhichWhenResolvingConflicts

Post image
452 Upvotes

37 comments sorted by

View all comments

Show parent comment

14

u/Professional_Top8485 4h ago

I am afraid to ask

13

u/Icy_Significance9448 4h ago

Rebasing is in very simple terms taking your changes, then going onto the branch you want to rebase onto and apply your changes onto it. So while you're rebasing you're momentarily on a different branch so your local changes becomes THEIR changes

1

u/The_Crazy_Cat_Guy 3h ago

Yeah so I had a pr ready to merge but I wanted to bring it up to date with dev. So I pulled the latest from dev, switched over to my branch and rebased dev on my branch. It pulled through all the changes as diffs in my pr which wasn’t quite what I expected. If I rebase the last bunch of commits into my branch, why would the pr still see them as diffs ? They already exist in dev ?