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

Re: Simple UI question...

From
Junio C Hamano <junkio@cox.net>
Date
Jan 7, 2007, 11:40 UTC
Message-ID
<7vk5zz12va.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<204011cb0701070338i5f8a8b4bw8b39050aeb192edb@mail.gmail.com>
"Chris Lee" <clee@kde.org> writes:
Show 18 quoted lines
> On 1/7/07, Shawn O. Pearce <spearce@spearce.org> wrote:
>> Chris Lee <clee@kde.org> wrote:
>> > I assume 'removing everything in the working tree' counts as "local
>> > modifications"? :)
>>
>> Yes!  That's what's going wrong.  Don't do "rm -rf *".  Let Git take
>> care of the empty directories for you.  If Git deletes all source
>> files in that directory (as they don't belong in this version that
>> you are checking out) it will also delete the now empty directory.
>>
>> The only time it fails is if you are on Windows and some process
>> has the directory busy.  :-)
>
> So, if I were starting with an empty working directory, and I had just
> synced over the .git folder from the place where I'm doing the actual
> importing - how would I populate the working directory with a copy of
> the contents of the tree from (say)
> 07058310db903317faa300b93004a5a2e0fc2dcc ?
git reset --hard 070583
Previous: Chris LeeNext: Chris Lee
Message 7 of 9 in “Simple UI question...”
  1. Chris LeeJan 7, 2007
  2. Josef "Jeff" SipekJan 7, 2007
  3. Shawn O. PearceJan 7, 2007
  4. Chris LeeJan 7, 2007
  5. Shawn O. PearceJan 7, 2007
  6. Chris LeeJan 7, 2007
  7. Junio C HamanoJan 7, 2007
  8. Chris LeeJan 7, 2007
  9. Junio C HamanoJan 7, 2007

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.