From: Mike Fleetwood <mike.fleetwood@googlemail.com>
To: git@vger.kernel.org
Subject: git fast-import / working tree status question
Date: Fri, 19 Feb 2010 23:20:24 +0000 [thread overview]
Message-ID: <fc5ef2e01002191520u7b50c98fo3a3defe70e31292a@mail.gmail.com> (raw)
Hi,
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?
Thanks in advance,
Mike
[mike@rockover tmp]$ mkdir test.git
[mike@rockover tmp]$ cd test.git
[mike@rockover test.git]$ git init
Initialized empty Git repository in /tmp/test.git/.git/
[mike@rockover test.git]$ git fast-import << EOF
> # Test git fast-import file
> progress Commit 1/1
> commit refs/heads/master
> mark :1
> committer Fred Bloggs <fred.bloggs@example.com> 1266610576 +0000
> data 16
> Initial checkin
>
> M 644 inline test
> data 10
> Test file
> EOF
progress Commit 1/1
...
[mike@rockover test.git]$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# deleted: test
#
[mike@rockover test.git]$ ls
[mike@rockover test.git]$ git log | cat
commit 769c8359d963fd13324d522e5e10a0269dd97395
Author: Fred Bloggs <fred.bloggs@example.com>
Date: Fri Feb 19 20:16:16 2010 +0000
Initial checkin
[mike@rockover test.git]$ git reset --hard HEAD
HEAD is now at 769c835 Initial checkin
[mike@rockover test.git]$ git status
# On branch master
nothing to commit (working directory clean)
[mike@rockover test.git]$ ls
test
[mike@rockover test.git]$ cat test
Test file
next reply other threads:[~2010-02-19 23:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-19 23:20 Mike Fleetwood [this message]
2010-02-19 23:40 ` git fast-import / working tree status question Shawn Pearce
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fc5ef2e01002191520u7b50c98fo3a3defe70e31292a@mail.gmail.com \
--to=mike.fleetwood@googlemail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).