Re: why is git destructive by default? (i suggest it not be!)
On Tue, 24 Jun 2008, David Jeske wrote:
Show 5 quoted lines
> I've heard from a couple users that the solution to these problems is to "go
> dig what you need out of the log, it's still in there". However, it's only in
> there until the log is garbage collected. This either means they are
> destructive operations, or we expect "running without ever collecting the log"
> to be a valid mode of operation... which I doubt is the case.
> Question: How about assuring ALL operations can be done non-destructivly by
> default?
git config --global gc.reflogexpire "2 years"
Nicolas