git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Prevent reset --hard from deleting everything if one doesn't have any commits yet
@ 2019-02-28 21:43 Manuel Guilamo
  2019-03-01  6:56 ` Johannes Sixt
  0 siblings, 1 reply; 5+ messages in thread
From: Manuel Guilamo @ 2019-02-28 21:43 UTC (permalink / raw)
  To: git

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.

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-03-03  1:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-28 21:43 Prevent reset --hard from deleting everything if one doesn't have any commits yet Manuel Guilamo
2019-03-01  6:56 ` Johannes Sixt
2019-03-01 13:46   ` Manuel Guilamo
2019-03-01 13:47   ` Jeff King
2019-03-03  1:38     ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).