cm0002 ( cm0002@lemdro.id ) to Programmer Humor@programming.devEnglish · 1 year agoWhen you screw up gitlemmy.zipimagemessage-square33linkfedilinkarrow-up1458
arrow-up1458imageWhen you screw up gitlemmy.zipcm0002 ( cm0002@lemdro.id ) to Programmer Humor@programming.devEnglish · 1 year agomessage-square33linkfedilink
minus-squarekaty ✨ ( cupcakezealot@piefed.blahaj.zone ) linkfedilinkEnglisharrow-up15·1 year agogit reset --hard <commit-hash> git push -f origin main i didn’t see anything, officer
minus-squaremartinb ( martinb@lemmy.sdf.org ) linkfedilinkarrow-up10·1 year agoYou should be forcibly kept away from production systems…
minus-squarehenfredemars ( henfredemars@infosec.pub ) linkfedilinkEnglisharrow-up8·1 year agoWe had an intern do this once. We changed our server config to make sure it wouldn’t accept such operations.
minus-squareunalivejoy ( joyjoy@lemmy.zip ) linkfedilinkarrow-up1·1 year agoNever use --force. Always use --force-with-lease.
minus-squareenbiousenvy ( enbiousenvy@lemmy.blahaj.zone ) linkfedilinkEnglisharrow-up2·1 year agoI’ve mistyped that a couple of times to be --force-with-leash
minus-squareunalivejoy ( joyjoy@lemmy.zip ) linkfedilinkarrow-up4·1 year agogit push origin master --force-with-leash Don’t do that to your master.
minus-squarekaty ✨ ( cupcakezealot@piefed.blahaj.zone ) linkfedilinkEnglisharrow-up2·1 year agoonly do that in puppygit (with consent)
minus-squareenbiousenvy ( enbiousenvy@lemmy.blahaj.zone ) linkfedilinkEnglisharrow-up1·1 year agoTIL thats a real thing https://github.com/catpuppyapp/PuppyGit
git reset --hard <commit-hash> git push -f origin maini didn’t see anything, officer
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.
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