Re: why is git destructive by default? (i suggest it not be!)
- From
- Teemu Likonen <tlikonen@iki.fi>
- Date
- Jun 24, 2008, 04:59 UTC
- Message-ID
- <20080624045937.GA3125@mithlond.arda.local>
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.