git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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

From
TLTeemu 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.
Next: Teemu Likonen
Message 1 of 2 in “Re: why is git destructive by default? (i suggest it not be!)”
  1. Teemu LikonenJun 24, 2008
  2. Teemu LikonenJun 24, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.