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

Re: Deleting a submodule

From
Alex Riesen <raa.lkml@gmail.com>
Date
Mar 13, 2009, 08:14 UTC
Message-ID
<81b0412b0903130114j289e7ae1j527e16cd84a892fe@mail.gmail.com>
In-Reply-To
<20BA928D-7133-40E7-AB01-466F509F002C@simplicidade.org>
2009/3/12 Pedro Melo <melo@simplicidade.org>:
Show 9 quoted lines
> I couldn't find a git-submodule command to delete a submodule. What is the
> correct procedure?
>
> I did:
>
>  * removed the entry from .gitmodules;
>  * run git submodule sync
>
> But its still recorded somewhere.

git rm --cached path/to/submodule git commit -m'Submodule path/to/submodule removed'

Previous: Pedro Melo
Message 2 of 2 in “Deleting a submodule”
  1. Pedro MeloMar 12, 2009
  2. Alex RiesenMar 13, 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.