this post was submitted on 03 Jul 2025
119 points (94.7% liked)

Programmer Humor

37105 readers
177 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 

As the title says. I put the wrong value inside a clean up code and I wiped everything. I did not push any important work. I just want to cry but at least I can offer it to you.

Do not hesitate to push even if your project is in a broken state.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 36 points 1 week ago (4 children)
IN CASE OF FIRE

1. git commit
2. git push
3. exit building
[–] [email protected] 6 points 6 days ago (2 children)

Except when everyone pushes to main at the same time and now you have conflicts.

[–] [email protected] 4 points 5 days ago

They wouldn't push to main at the same time tho, they would push to the branches they're working on. Unless their organization is very badly run, and then it's probably already happened before just because it was Tuesday.

[–] [email protected] 5 points 6 days ago (1 children)

Who pushes to main? That branch should be protected! Who reviews the merge request?

[–] [email protected] 5 points 6 days ago

Lol, standards 🙄

[–] [email protected] 27 points 1 week ago* (last edited 1 week ago)

git-fire

"git-fire is a Git plugin that helps in the event of an emergency by switching to the repository's root directory, adding all current files, committing, and pushing commits and all stashes to a new branch (to prevent merge conflicts)."

[–] [email protected] 5 points 1 week ago
  1. git commit -m 'asdf'
[–] [email protected] 6 points 1 week ago (1 children)

I have this printed on a sign at work.

[–] [email protected] 3 points 5 days ago

It was on a sign where I once worked, but that was almost 10 years ago.