Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
C0D43051467dI think we’ve all been there.
That’s what code reviews are for to save our ass.
karma904567dYep, wrong repo, about a year ago 🤦♂️🌋
aikone63567dgit push force to master, done it once while I was an intern, it definitely was “oh shit” moment 😐
edobarroso17567dBeen there, done that. Definitely an “oh shit” moment :(
zwklc14467dbeen there done that , wasted half day to clean off the shit
iAmNaN576267dYes. And then I learned how to revert.
hanieh-m154567dYep. 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
kenogo849965dDon'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