1106
Rebase Supremacy (programming.dev)
(page 2) 50 comments
sorted by: hot top controversial new old
[-] lightrush@lemmy.ca 10 points 7 months ago
load more comments (1 replies)
[-] merthyr1831@lemmy.world 9 points 7 months ago* (last edited 7 months ago)

Heres my based af workflow:

git checkout -b feature-branch

rebase on top of dev whilst working locally

git rebase origin/dev-branch && git push -f


if i need to fix conflicts with dev-branch during a PR

git merge origin/dev

[-] JoYo@lemmy.ml 8 points 7 months ago

Anyone mind explaining to me how git rebase is worth the effort?

git merge has it's own issues but I just don't see any benefit to rebase over it.

[-] Aux@lemmy.world 7 points 7 months ago

Well, rebase allows you to resolve the same conflict ten times in a row instead of doing it once. How cool is that?

load more comments (5 replies)
load more comments (6 replies)
[-] jollyrogue@lemmy.ml 7 points 7 months ago

git rebase is only for terrorists. 🥸

Also for me when I’ve been drinking and committed some really stupid shit into the repo. No one needs to know what I really think of my team members.

[-] 7heo@lemmy.ml 7 points 7 months ago

Yeah totally merge everything, people like a good spaghetti salad.

load more comments (1 replies)
[-] iAvicenna@lemmy.world 7 points 7 months ago* (last edited 7 months ago)

I personally prefer "git off my lawn"

load more comments (1 replies)
[-] jaemo@sh.itjust.works 7 points 7 months ago

Fuck a merge commit! Rebase ervray day bay bayyy.

[-] tatterdemalion@programming.dev 7 points 7 months ago

Rebase feature branch, merge commit into main (NO SQUASH).

load more comments (2 replies)
[-] AeonFelis@lemmy.world 6 points 7 months ago

I like rebase, it's everyone else that hate it when I rebase main twice a day.

[-] RampantParanoia2365@lemmy.world 6 points 7 months ago

You had me a "Sydney Sweeney reveals".

[-] cupcakezealot@lemmy.blahaj.zone 5 points 7 months ago

i like to create ten different checkouts of main, rebase them all slightly differently and then no fast forward merge them all back into each other

[-] rimjob_rainer@discuss.tchncs.de 5 points 7 months ago

Daily circlejerk

load more comments
view more: ‹ prev next ›
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