this post was submitted on 06 Oct 2025
847 points (96.7% liked)

Programmer Humor

27690 readers
456 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 2 years ago
MODERATORS
 

Yeah learned this the hard way.

you are viewing a single comment's thread
view the rest of the comments
[–] Eiri@lemmy.ca 16 points 2 months ago (24 children)

As long as you never touch the rebase button, you'll be fine. Probably.

[–] LedgeDrop@lemmy.zip 6 points 2 months ago (14 children)

... and force push.

If you ever find yourself in a situation where rebase or a force push seems to be the solution, take a step back, clone your repo in a new directory and copy the changes into you're new checkout - 'cause you gon' and screwed somethin' up, son.

[–] majster@lemmy.zip 8 points 2 months ago (1 children)

I rebase and force push PR branches all the time. Master is moving quicker than my PR.

[–] SavinDWhales@lemmy.world 1 points 2 months ago

Yeah, our whole workflow is based on rebasing our feature branches on develop. Makes for a clean git log. :)

Don't be afraid of git reset --hard if you rebased with the button on GitHub/gitlab, though. :D

load more comments (12 replies)
load more comments (21 replies)