DEV Community


Discussion on: What are your worst coding habits?

ddhogan profile image
Donna Hogan
  • git push --force on a regular basis
  • using VSC to open dot files and not taking the time to learn vim or nano, etc
citizen428 profile image
Michael Kohl

If you start using —force-with-lease instead the habit becomes quite a bit less bad.

nickytonline profile image
Nick Taylor (he/him)

My git alias, pf,is just for that, push --force-with-lease. More here 😉

ben profile image
Ben Halpern Author

I don’t think the second is a bad habit. There’s no special reason one needs to be using bin or nano imo.

ericcurtin profile image
Eric Curtin

I think all Unix/Linux developers should know vim. Because vi or vim is almost always installed on these variants. Sure for local development a UI is great, a very useful tool! But for editing files on remote machines, the ability to ssh to a remote machine and make a quick change is very important.

selbekk profile image
selbekk • Edited

My git alias for that command is git fush 😄

colorcodedcode profile image
Robert Schaap

I need that in my life. I'm an obsessive compulsive interactive rebaser.