Re: Produce contents of index with existing directory as cache
- From
- Florian Weimer <fweimer@redhat.com>
- Date
- Aug 31, 2017, 09:58 UTC
- Message-ID
- <8ca2e078-88d2-83db-bc28-5f8fbf3c0dd6@redhat.com>
- In-Reply-To
- <CANghgrTFjybxfmn=DzKwvoqRP3GA3sWiGFtYdEfPZtWmyznq9g@mail.gmail.com>
On 08/30/2017 04:55 PM, David Lloyd wrote:
Show 5 quoted lines
> 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