note to self: dont 'git reset --hard' a newly created git repo :(

@ivan on a newly created git repo? I feel like there's something missing.
anyway, sorry you lost your work. I know that sucks.

@kolya i had an untracked project that i made a new git repo in, added all, then realized i added a bunch of stuff i didnt need, reset it, but added --hard instinctively because i tend to do that in existing projects a lot and it erased everything as all files were untracked

@ivan Short of backups, there are ways to recover files lost that way. On Windows a free tool is Recuva, I'm sure there are similar tools on Mac. Either way the most important step would be to stop working on that harddrive, to prevent the deleted files from getting overwritten.

Sign in to participate in the conversation
coolkids.house

this is where the cool kids live