[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: Produce contents of index with existing directory as cache
From:       Florian Weimer <fweimer () redhat ! com>
Date:       2017-08-31 9:58:31
Message-ID: 8ca2e078-88d2-83db-bc28-5f8fbf3c0dd6 () redhat ! com
[Download RAW message or body]

On 08/30/2017 04:55 PM, David Lloyd wrote:
> On Wed, Aug 30, 2017 at 9:18 AM, Florian Weimer <fweimer@redhat.com> wrote:
>> On 08/30/2017 04:15 PM, David Lloyd wrote:
>>> git reset --hard ?
>>
>> That doesn't remove unstaged files.

> Ah, does it not?  Perhaps add a "git clean -d -f" as well.

It would have to be "git clean -d -f -f -x" (not the two "-f") to be on
the safe side.  I wonder what else I'm missing, though, and if this is
completely reliable and has the same effect as removing the tree before
"git checkout-index".

Thanks,
Florian
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic