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

Re: index file list files not found in working tree

From
RYRafik E Younan <rafik.arkdev@gmail.com>
Date
Aug 25, 2015, 14:50 UTC
Message-ID
<55DC80A0.3060309@gmail.com>
In-Reply-To
<20150825103214.GH1412@serenity.lan>
On 08/25/2015 12:32 PM, John Keeping wrote:
Show 10 quoted lines
> On Tue, Aug 25, 2015 at 12:16:43PM +0200, Rafik E Younan wrote:
>> I got a recommendation to use reset --hard. I tried it and it says the
>> HEAD is now at correct commit, but missing files are not restored!
>>
>> I tried `ls-tree --name-only` and it lists missing files and folders,
>> but the actual working tree doesn't have these files and folders.
> Is there any chance that you have enabled sparse checkouts?  See the
> documentation at the bottom of git-read-tree(1).
>
>

There was `.git/info/sparse-checkout` file in the local repo, but not in other cloned repo. I remove the file, the `.git/index` and did reset --hard, and all seems works now.

Thanks for your help.
Git community rocks!

Regards, Rafik

Previous: John Keeping
Message 4 of 4 in “index file list files not found in working tree”
  1. Rafik E YounanAug 24, 2015
  2. Rafik E YounanAug 25, 2015
  3. John KeepingAug 25, 2015
  4. Rafik E YounanAug 25, 2015

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.