From: Junio C Hamano Date: Sun, 07 Jan 2007 11:40:41 GMT Subject: Re: Simple UI question... Message-ID: <7vk5zz12va.fsf@assigned-by-dhcp.cox.net> In-Reply-To: <204011cb0701070338i5f8a8b4bw8b39050aeb192edb@mail.gmail.com> "Chris Lee" writes: > On 1/7/07, Shawn O. Pearce wrote: >> Chris Lee 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