this post was submitted on 07 Feb 2025
540 points (98.9% liked)

Programmer Humor

25531 readers
1535 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
 
you are viewing a single comment's thread
view the rest of the comments
[–] muntedcrocodile@lemm.ee 38 points 6 months ago (8 children)

That's not a mistake git can do that to people. Especially those who have never used git via command line.

[–] NocturnalMorning@lemmy.world 11 points 6 months ago* (last edited 6 months ago) (7 children)

Yeah, imagine you accidently commit over weeks of work, or hell, if it's the main branch, and you deleted the other origin branch prior to merging, it could be a lot more than a few weeks worth of work. The revert to a previous commit... shutters.

[–] wise_pancake@lemmy.ca 5 points 6 months ago (1 children)

That’s when you call in a wizard.

They do git necromancy and sacrifice a goat to the reflog to recover your code

[–] verstra@programming.dev 2 points 6 months ago

Ah, yes, the reflog incantation. It is said that it can be performed only by those who have rebased on an hard reset origin.

load more comments (5 replies)
load more comments (5 replies)