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

Programmer Humor

22285 readers
895 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
[–] [email protected] 155 points 3 weeks ago* (last edited 3 weeks ago) (14 children)

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

[–] [email protected] 7 points 3 weeks ago* (last edited 3 weeks ago) (11 children)

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

[–] [email protected] 5 points 3 weeks 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)

[–] [email protected] 3 points 3 weeks 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.

load more comments (9 replies)
load more comments (11 replies)