Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
C0D4277954dI think we’ve all been there.
That’s what code reviews are for to save our ass.
karma84114dYep, wrong repo, about a year ago 🤦♂️🌋
aikone6254dgit push force to master, done it once while I was an intern, it definitely was “oh shit” moment 😐
Been there, done that. Definitely an “oh shit” moment :(
zwklc1423dbeen there done that , wasted half day to clean off the shit
iAmNaN46543dYes. And then I learned how to revert.
Yep. Wrong branch. That's how I learned to force push.
Yep. I force pushed to a wrong remote branch. That didn't exactly make my day
kenogo81962dDon't wanna play the smartass here as I'm actually a person who ran "sudo rm -rf *" in his root directory once :-| but whenever you use --force on ANYTHING, read that fucking line three times. Think about what could be wrong, and check those things. Possibly even let a colleague look over it in some scenarios (would be overkill for a git push but there's no shame in letting someone check your dd command).
Only after doing all of this, you're allowed to run that command. Follow this strategy and you'll be good in the future.
Your Job Suck?
Take a quick quiz from Triplebyte to skip the job search hassles and jump to final interviews at hot tech firms
Get a Better Job