778
When you screw up git
(lemmy.zip)
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.
You should be forcibly kept away from production systems...
We had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.
It’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”
I wonder what you think "configuring" means.
Never use
--force
. Always use--force-with-lease
.I've mistyped that a couple of times to be
--force-with-leash
git push origin master --force-with-leash
Don't do that to your master.
only do that in puppygit (with consent)
TIL thats a real thing https://github.com/catpuppyapp/PuppyGit