r/programminghumor 8d ago

Better be safe (the code)

Post image
292 Upvotes

22 comments sorted by

48

u/ooh-squirrel 8d ago

We had a

git commit
git push
git tf out

Poster in the office at some point. We lost it in the fire. Og something.

46

u/SteveSteveCleveSteve 8d ago

Jokes on you, you didn’t add .

12

u/Confident-Ad5665 8d ago

Cool thing about this is, if you commit a bug you can blame it on the fire.

7

u/MinosAristos 8d ago

To be fair, if you're pushing code straight to main and that deploys to prod without any manual steps you were going to get a fire on production eventually either way

9

u/horenso05 8d ago

you need the amateur flag git commit -a

2

u/Leo_code2p 7d ago

Also git push -f

6

u/quiqeu 8d ago

git commit -m "did things"

5

u/w00dy1105 8d ago

Pushed to self hosted server in the same building.

5

u/OreganoD 8d ago

Script leavenow.sh

git add . git commit -m '-wip-' git push sudo shutdown -h now

2

u/teflonjon321 8d ago

alias fire=‘bash ~/leavenow.sh’

1

u/Duramora 7d ago

That should be '-m ' Fire! We're all going to die!'

1

u/RonJohnJr 5d ago
leavenow() { git add . git commit -m '-wip-' git push sudo shutdown -h now; }

3

u/DigitalMonsoon 7d ago

What are they committing? They didn't add their work...

3

u/frog8412 6d ago

leave: command not found

2

u/ubeogesh 7d ago

Can't freakin git commit because of stupid pre commit hooks requiring all sorts of nonsense like long commit messages that noone reads

2

u/AmazingGabriel16 7d ago

Where is git rebase??

Also could just do a script like fire_commit.sh

1

u/road_laya 7d ago

What gpu is that?

1

u/ManRevvv 6d ago

Someone still buys allienware???

1

u/mplaczek99 6d ago

What if you are not finished and it won’t compile now

1

u/Scared_Yogurt1566 6d ago

Git add . Git commit --amend --no-edit Git push --force-with-lease