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

Re: git fast-import / working tree status question

From
Shawn Pearce <spearce@spearce.org>
Date
Feb 19, 2010, 23:40 UTC
Message-ID
<ec874dac1002191540p343889d7v5f14876cf0df14c8@mail.gmail.com>
In-Reply-To
<fc5ef2e01002191520u7b50c98fo3a3defe70e31292a@mail.gmail.com>

On Fri, Feb 19, 2010 at 3:20 PM, Mike Fleetwood <mike.fleetwood@googlemail.com> wrote:

Show 8 quoted lines
> I am a newbie using git and I am testing conversion of a personal
> project into git using fast-import.  When fast-import completes
> all the files are in the repository but the working tree is empty
> and status reports all files are delete but uncommitted.  I have
> to use reset --hard HEAD to unwind the pending removal of all of
> the files.  Example below.
>
> Is this normal or have I missed something?

Completely normal. fast-import is a lower level command which only works on the object directory. Frontend tools which automate the conversion are supposed to checkout the working tree files after the import is complete. Or, run like you did, `git reset --hard HEAD`.

Previous: Mike Fleetwood
Message 2 of 2 in “git fast-import / working tree status question”
  1. Mike FleetwoodFeb 19, 2010
  2. Shawn PearceFeb 19, 2010

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.