cm0002@lemdro.id to Programmer Humor@programming.devEnglish · 4 months agoWhen you screw up gitlemmy.zipimagemessage-square57fedilinkarrow-up1753arrow-down16
arrow-up1747arrow-down1imageWhen you screw up gitlemmy.zipcm0002@lemdro.id to Programmer Humor@programming.devEnglish · 4 months agomessage-square57fedilink
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up24·4 months agogit reset --hard <commit-hash> git push -f origin main i didn’t see anything, officer
minus-squaremartinb@lemmy.sdf.orglinkfedilinkarrow-up18·4 months agoYou should be forcibly kept away from production systems…
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up3·4 months agoNever use --force. Always use --force-with-lease.
minus-squareenbiousenvy@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up2·4 months agoI’ve mistyped that a couple of times to be --force-with-leash
minus-squarekaty ✨@piefed.blahaj.zonelinkfedilinkEnglisharrow-up2·edit-24 months agoonly do that in puppygit (with consent)
minus-squareenbiousenvy@lemmy.blahaj.zonelinkfedilinkEnglisharrow-up1·4 months agoTIL thats a real thing https://github.com/catpuppyapp/PuppyGit
minus-squareunalivejoy@lemmy.ziplinkfedilinkarrow-up4·4 months agogit push origin master --force-with-leash Don’t do that to your master.
minus-squarehenfredemars@infosec.publinkfedilinkEnglisharrow-up12·4 months 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-up3arrow-down6·edit-24 months agoIt’s just a branch guard + properly implementing git user and team permission structures - you’re not “configuring a server”
minus-squaremarcos@lemmy.worldlinkfedilinkarrow-up4·4 months agoI wonder what you think “configuring” means.
git reset --hard <commit-hash> git push -f origin maini didn’t see anything, officer
You should be forcibly kept away from production systems…
Never use
--force. Always use--force-with-lease.I’ve mistyped that a couple of times to be
--force-with-leashonly do that in puppygit (with consent)
TIL thats a real thing https://github.com/catpuppyapp/PuppyGit
git push origin master --force-with-leashDon’t do that to your master.
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.