1106
Rebase Supremacy (programming.dev)
you are viewing a single comment's thread
view the rest of the comments
[-] jaemo@sh.itjust.works 2 points 7 months ago

Here's an example

Say I work on authentication under feature/auth Monday and get some done. Tuesday an urgent feature request for some logging work comes in and I complete it on feature/logging and merge clean to main. To make sure all my code from Monday will work, I will then switch to feature/auth and then git pull --rebase origin main. Now my auth commits start after the merge commit from the logging pr.

[-] Croquette@sh.itjust.works 1 points 7 months ago

Thanks for the example. Rebase use is clearer now.

this post was submitted on 04 Apr 2024
1106 points (98.1% liked)

Programmer Humor

19623 readers
1 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS