this post was submitted on 21 Mar 2025
732 points (98.8% liked)

Programmer Humor

23563 readers
1965 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
[–] Arsecroft@lemmy.sdf.org 150 points 2 months ago* (last edited 2 months ago) (2 children)

this guy would have force pushed onto main about 10 mins after this if he did have git

[–] pivot_root@lemmy.world 37 points 2 months ago (1 children)

And then lost the reflog by rm -rfing the project and cloning it again.

[–] orcrist@lemm.ee 2 points 2 months ago

God bless DCVS.

[–] 30p87@feddit.org 5 points 2 months ago* (last edited 2 months ago) (1 children)

Tbf you have to do that for the first push, if a Readme file was autogenerated

[–] computergeek125@lemmy.world 4 points 2 months ago (1 children)

Does that still happen if you use the merge unrelated histories option? (Been a minute since I last had to use that option in git)

[–] 30p87@feddit.org 2 points 2 months ago

Never have heard of that, but in the case of you also having a Readme that will be even more complicated, I imagine. So just adding -f is the easier option.