778
you are viewing a single comment's thread
view the rest of the comments
[-] martinb@lemmy.sdf.org 18 points 5 days ago

You should be forcibly kept away from production systems...

[-] henfredemars@infosec.pub 11 points 5 days ago

We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.

[-] gravitas_deficiency@sh.itjust.works -3 points 5 days ago* (last edited 5 days ago)

It’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”

[-] marcos@lemmy.world 4 points 5 days ago

I wonder what you think "configuring" means.

[-] joyjoy@lemmy.zip 3 points 5 days ago

Never use --force. Always use --force-with-lease.

[-] enbiousenvy@lemmy.blahaj.zone 2 points 5 days ago

I've mistyped that a couple of times to be --force-with-leash

[-] joyjoy@lemmy.zip 4 points 5 days ago

git push origin master --force-with-leash

Don't do that to your master.

[-] cupcakezealot@piefed.blahaj.zone 2 points 5 days ago* (last edited 5 days ago)

only do that in puppygit (with consent)

this post was submitted on 11 Oct 2025
778 points (99.2% liked)

Programmer Humor

26891 readers
336 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