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

Re: fatal: unable to create '.git/index': File exists

From
MManu <manu@blairos.org>
Date
Jan 5, 2007, 17:30 UTC
Message-ID
<f898cca90701050930l21338b88t1bd75e037beeca05@mail.gmail.com>
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:
Show 25 quoted lines
> 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
>
Previous: Len BrownNext: Johannes Schindelin
Message 2 of 5 in “fatal: unable to create '.git/index': File exists”
  1. Len BrownJan 5, 2007
  2. ManuJan 5, 2007
  3. Johannes SchindelinJan 5, 2007
  4. Fredrik KuivinenJan 6, 2007
  5. Len BrownJan 6, 2007

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.