Re: Prevent reset --hard from deleting everything if one doesn't have any commits yet

2019-03-01 Thread Manuel Guilamo
your quick reply. > On Mar 1, 2019, at 2:56 AM, Johannes Sixt wrote: > > Am 28.02.19 um 22:43 schrieb Manuel Guilamo: >> I accidentally executed git reset —hard in a project that doesn’t >> have any commits yet. git erased everything, everything I’ve worked >> the past

Prevent reset --hard from deleting everything if one doesn't have any commits yet

2019-02-28 Thread Manuel Guilamo
I accidentally executed git reset —hard in a project that doesn’t have any commits yet. git erased everything, everything I’ve worked the past week, I believe this is not a desired behavior, considering I’m not able to undo that action, because git doesn’t have any history whatsoever.