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

RE: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Dec 31, 2008, 16:00 UTC
Message-ID
<alpine.LNX.1.00.0812311039370.19665@iabervon.org>
In-Reply-To
<BB5F02FD3789B54E8964D38D6775E718242D38@ALTMORE-SVR.altmore.local>
On Wed, 31 Dec 2008, Conor Rafferty wrote:
Show 10 quoted lines
> And you would be wrong, IMHO.  Many people have untracked files or
> directories in their working directory ('cause they are working there)
> that they don't want deleted willy-nilly.  Build files, modifications
> that should be on a different branch, etc.  There's another thread
> active on the list complaining that git removes too much from the
> working tree.
> 
> ** An SCM should be able to cope with both use cases. In fact I make it
> easy for the SCM by deleting EVERYTHING from the working directory,
> before calling git-checkout.

In this case, git thinks you actually meant to delete those tracked files, and does its best to not undelete them unless you ask it to get them back. Git is very careful not to lose your changes, which is very nice most of the time, but means that you can't make changes and expect git to lose them.

	-Daniel
*This .sig left intentionally blank*
Previous: Conor Rafferty
Message 2 of 2 in “RE: for newbs = little exercise / tutorial / warmup for windows and other non-sophisticated new Git users :-) [Scanned]”
  1. Conor RaffertyDec 31, 2008
  2. Daniel BarkalowDec 31, 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.