Re: why is git destructive by default? (i suggest it not be!)

From: Teemu Likonen <hidden>
Date: 2016-06-15 22:44:48

David Jeske wrote (2008-06-24 01:47 -0000):
As a new user, I'm finding git difficult to trust, because there are
operations which are destructive by default and capable of
inadvertently throwing hours or days of work into the bit bucket.
I'm also quite new and I actually feel safe using git, and it's because
of reflog. No matter what I do (except manual reflog expire) I can see
where I was before with command

  git log --walk-reflogs

and get everything back. I have needed it a couple of times. So the
safety net is there, one just has to learn to trust it. :-)

Git is much safer than the standard Unix tools like rm, mv and cp.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help