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

Problems after deleting submodule

From
Howard Miller <howard@e-learndesign.co.uk>
Date
Oct 18, 2011, 11:54 UTC
Message-ID
<CAHVO_90UN_nNDbqxM2TkUjo_qfVhLgjUJoZTmYi6rsLnRMOUFg@mail.gmail.com>

I included a submodule in my project then decided I didn't like submodules and deleted it again. I followed the advice of delting .gitmodules, the bit from .git/config and then git rm'ing the submodule. Seemed to work. I then copied files with the same directory name into where the submodule was. However, I can't add them.

Doing git add /path/to/old/submodule - does nothing, files are not staged, no error messages no nothing. If I try to git rm /path/to/old/submodule - it just says 'did not match any files'.

It simply does not seem to want to add anything to the old submodule location. I had a grep around and could not see any obvious references in the repo.

I'm a bit stuck... any suggestions for things I can try much appreciated.
Next: Jens Lehmann
Message 1 of 3 in “Problems after deleting submodule”
  1. Howard MillerOct 18, 2011
  2. Jens LehmannOct 18, 2011
  3. Howard MillerOct 19, 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.