News for hackers. Stuff that matters.
Re:Some bad Git situations and how I got myself out of them by abarrak on Friday September 09, 2016 @04:00AM (#12460346)
It's probably a good time to check if you have some safety against `rm -fr `.

Two days ago, I wanted to delete .git only, but accidentally as my fingers were accustomed with -fr , the command was `rm -fr * .git`. Rails server was running and some hope arose at the moment to just `lsof | grep` .. unfortunately that didn't work with me !

Ironically, all dot files have stuck as obvious :)

Re:Some bad Git situations and how I got myself out of them by 0xmohit on Friday September 09, 2016 @04:24AM (#12460422)
> Ironically, all dot files have stuck as obvious :)

Those wouldn't have if you had set the following:

  shopt -s dotglob