From: "A. S. Budden" <abudden@gmail.com>
To: git@vger.kernel.org
Subject: Git problems with adding files (first use)
Date: Tue, 29 Sep 2009 10:17:21 +0100 [thread overview]
Message-ID: <1ddea54e0909290217o45b2e89j3b023821a4871b41@mail.gmail.com> (raw)
Dear all,
I have just installed Git from the msysgit distribution
(Git-1.6.4-preview20090730.exe). I've also installed TortoiseGit
(1.0.2.0). I've been having a few problems adding files (either using
tortoise or the command line tools).
What I did (copied and pasted directly from the command window):
=============================================================
Z:\>mkdir testproject
Z:\>cd testproject
Z:\testproject>echo "test file" > file1.c
Z:\testproject>echo "test file" > file2.c
Z:\testproject>git init
Initialized empty Git repository in Z:/testproject/.git/
Z:\testproject>git add file1.c
error: unable to create temporary sha1 filename .git/objects/f7/tmp_obj_a02340:
No such file or directory
error: file1.c: failed to insert into database
error: unable to index file file1.c
fatal: adding files failed
=============================================================
Can anyone tell me what I'm doing wrong? I've tried using tortoise
git and I've tried it on an existing project (rather than a bunch of
random files), but I can't seem to add files to the repository: I
always get the "No such file or directory" error.
Thanks in advance for your help.
Al
reply other threads:[~2009-09-29 9:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=1ddea54e0909290217o45b2e89j3b023821a4871b41@mail.gmail.com \
--to=abudden@gmail.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).