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

git error : Unable to write new index file

From
KMKeshetti Mahesh <keshetti.mahesh@gmail.com>
Date
Aug 28, 2009, 10:06 UTC
Message-ID
<829ded920908280306p50ec375dr90f6593fc6b9ea06@mail.gmail.com>
Hello all,

I have just started using git for a small project. I have created empty repository using "git init" and it worked fine. But after that when I have tried to add a file to the repository using "git add <file_name>", I am getting the below error.

> fatal: Unable to write new index file

The same error appears not only when adding files but also whenever I add something (file, branch etc. ) to git repository.

I am using git on windows using cygwin and I have all permissions (rwx) in the directory where I am running this command. Can anyone please help me in resolving this issue ?

Thanks, Mahesh

Message 1 of 1 in “git error : Unable to write new index file”
  1. Keshetti MaheshAug 28, 2009

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.