Real story, many years ago, I printed this and put it on the office wall for the fun of it. Few days later the health and safety people took it down. Apparently they though it was a dangerous advice...
Just tell your ai "If there is a fire in the building, please compile - fix all errors - commit to repo - delete prod - email me a report - and enter my PTO for the next week"
Jokes aside we developed something like this for all IT-teams in a bigger company. One botton (we overly dramatically have chosen these red emergency buttons) does immediately lock the pcs and puts everything in the room into seperate branches of a local gitlab project (one for each room).
With this we have no problem with real emergencies, including fire and depending on the region of the team even earthquake, tsunami warnings and in one case terrorism.
81
u/Thotuhreyfillinn Mar 08 '26
Missing --force
69
u/admiral_nivak Mar 08 '26
That’s why your devs need laptops, pick up MacBook and run.
20
u/AllOneWordNoSpaces1 Mar 08 '26
‘git out’
31
u/DerryDoberman Mar 08 '26
No git add/stage?
15
u/recursion_is_love Mar 09 '26
11
u/Fugach Mar 09 '26
9
u/myTerminal_ Mar 09 '26
They missed 'git add' before commit.
8
u/OreganoD Mar 09 '26
Now you can rest easy if your computer goes up in flames
4
u/EffectiveLevel1000 Mar 09 '26
Real story, many years ago, I printed this and put it on the office wall for the fun of it. Few days later the health and safety people took it down. Apparently they though it was a dangerous advice...
4
u/singularity093 Mar 09 '26
and everybody died because of a merge conflict
6
u/PresentAstronomer137 Mar 08 '26
imagine you've got git conflicts
3
u/Ellicode Mar 09 '26
git commit git push git away
3
u/onated2 Mar 09 '26
Forgot to git add .
2
u/Substantial-Gain-596 Mar 09 '26
Amidala: You're pushing to a branch, right? Right?
2
u/Worried-Struggle671 Mar 09 '26 edited Mar 09 '26
alias onfire='git add . && git commit -m "wip" --no-verify && git push --force'
2
u/FunAd7955 Mar 09 '26
git add . git commit - m "We are on fire" git push
2
u/Tintoverde Mar 08 '26
Use a script dudes
1
u/rover_G Mar 09 '26
Where’s the unstaged changes meme?
1
u/shosuko Mar 09 '26
Just tell your ai "If there is a fire in the building, please compile - fix all errors - commit to repo -
delete prod- email me a report - and enter my PTO for the next week"1
u/swfideas Mar 09 '26
But first maybe let's stage something using git add -A
1
u/Alexllte Mar 09 '26
Lemme rebase for a sec
1
u/ByteBandit007 Mar 09 '26
Joker
1
u/KeyKeyner_kreker Mar 09 '26
Oh, he didn't add something to commit! 😔
1
u/stjepano85 Mar 09 '26
git push —force
1
u/NocturnisVacuus Mar 09 '26
the forgot the most important.
"git gud, son."
1
u/WaslleyNanferdess Mar 09 '26
Aí o cara é barrado pelo pre-commit ou workflow
1
u/JustAFishFinger Mar 09 '26
If you refine it a bit:
1
u/blamitter Mar 09 '26
git add --all
1
u/jwrsk Mar 09 '26
That's why I have
alias yolo1
u/deadmazebot Mar 09 '26
you script a command when power button is pressed or shutdown command run
to git commit all, with comment "important changes"
push with force
and had pipeline setup to approve and release the changes to live
1
u/One-Membership8248 Mar 09 '26
usage: leave [[+]hhmm]
1
u/RedLeatherMasterGirl Mar 10 '26
lmao 🤣 put the mask on the code 👩💻 then put yours on, save the code and leave !!!!! Hilarious 🤣
1
u/johku90 Mar 10 '26
how about if I get:
1
u/StatusProperty5587 Mar 10 '26
after 1 and 2 , you have conflict :D
1
u/TCreopargh Mar 10 '26
What if there's a merge conflict?
1
u/bloon_elite Mar 10 '26
You mean "leave building (optional)"
1
u/LavenderRevive Mar 11 '26
Jokes aside we developed something like this for all IT-teams in a bigger company. One botton (we overly dramatically have chosen these red emergency buttons) does immediately lock the pcs and puts everything in the room into seperate branches of a local gitlab project (one for each room).
With this we have no problem with real emergencies, including fire and depending on the region of the team even earthquake, tsunami warnings and in one case terrorism.
0
u/[deleted] Mar 09 '26
[deleted] — view deleted comment
214
u/[deleted] Mar 08 '26
[removed] — view removed comment