cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 1 year agoWhen you screw up gitlemmy.zipimagemessage-square62linkfedilinkarrow-up1782arrow-down10
arrow-up1782arrow-down1imageWhen you screw up gitlemmy.zipcm0002@lemdro.id to Programmer Humor@programming.devEnglish · 1 year agomessage-square62linkfedilink
minus-squaremartinb@lemmy.sdf.orglinkfedilinkarrow-up20·1 year agoYou should be forcibly kept away from production systems…
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up12·1 year agoWe had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.
minus-squaregravitas_deficiency@sh.itjust.workslinkfedilinkEnglisharrow-up3·edit-21 year agoIt’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up5·1 year agoI wonder what you think “configuring” means.
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up3·1 year agoNever use --force. Always use --force-with-lease.
minus-squareenbiousenvy@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up2·1 year agoI’ve mistyped that a couple of times to be --force-with-leash
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up4·1 year agogit push origin master --force-with-leash Don’t do that to your master.
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up2·edit-21 year agoonly do that in puppygit (with consent)
minus-squareenbiousenvy@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up1·1 year agoTIL thats a real thing https://github.com/catpuppyapp/PuppyGit
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-leashgit push origin master --force-with-leashDon’t do that to your master.
only do that in puppygit (with consent)
TIL thats a real thing https://github.com/catpuppyapp/PuppyGit