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

Files that cannot be added to the index

From
Sseanh <snhmnd@gmail.com>
Date
Aug 26, 2011, 12:26 UTC
Message-ID
<CAMvu5bLuRWinMYNc4NoRKQKiLCWLcwkpowEFT4GQ0mcJYj6eOg@mail.gmail.com>

Can anyone guess what's going on when I have a modified file that shows up in `git status`, but the file cannot be added to the index (or committed)? `git add FILE` does nothing, the file still shows as modified but not added in `git status`.

I have two different repos that have each developed this problem with two different files. I don't know how it happened. The problem occurs wherever the repos are cloned. Even if I delete the local copy (where I'm seeing the problem) and clone the repo again from elsewhere, problem persists.

Next: Michael J Gruber
Message 1 of 10 in “Files that cannot be added to the index”
  1. seanhAug 26, 2011
  2. Michael J GruberAug 26, 2011
  3. seanhAug 26, 2011
  4. Shaun RuffellAug 26, 2011
  5. Jeff KingAug 27, 2011
  6. seanhAug 27, 2011
  7. Shaun RuffellAug 27, 2011
  8. Shaun RuffellAug 27, 2011
  9. seanhAug 27, 2011
  10. seanhAug 27, 2011

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.