git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Manu <manu@blairos.org>
To: "Len Brown" <lenb@kernel.org>
Cc: git@vger.kernel.org
Subject: Re: fatal: unable to create '.git/index': File exists
Date: Fri, 5 Jan 2007 18:30:00 +0100	[thread overview]
Message-ID: <f898cca90701050930l21338b88t1bd75e037beeca05@mail.gmail.com> (raw)
In-Reply-To: <200701051150.09968.lenb@kernel.org>

Got this message once.
The reason was a git process still had a lock on the index file.
Make sure you have no git processes left running from the interruption
of git pull.

ps -ux | grep "git"

Manu

On 1/5/07, Len Brown <lenb@kernel.org> wrote:
> I kicked off a pull.
> Realized I was on the wrong branch
> and immediately did a ^C
>
> Now I can't change branches:
>
> # git checkout release
> fatal: unable to create '.git/index': File exists
> fatal: unable to create '.git/index': File exists
>
> git reset --hard
> does not help.
>
> curiously, moving .git/index to /tmp and repeating
> results in the same error.
>
> clues?
>
> thanks,
> -Len
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

  reply	other threads:[~2007-01-05 17:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-05 16:50 fatal: unable to create '.git/index': File exists Len Brown
2007-01-05 17:30 ` Manu [this message]
2007-01-05 20:16 ` Johannes Schindelin
2007-01-06  9:24   ` Fredrik Kuivinen
2007-01-06  3:01 ` Len Brown

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=f898cca90701050930l21338b88t1bd75e037beeca05@mail.gmail.com \
    --to=manu@blairos.org \
    --cc=git@vger.kernel.org \
    --cc=lenb@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).