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

git submodule remove?

From
Asheesh Laroia <asheesh@asheesh.org>
Date
Mar 31, 2008, 18:58 UTC
Message-ID
<alpine.DEB.1.10.0803311145250.5920@sf.creativecommons.org>

I notice that in git-submodule, there is an "add", a "status", an "init", and an "update" command, but no "remove" command.

I have "git version 1.5.4.4", and man git-submodule provides no mention of the right way to remove a submodule. I imagine that removing it from .gitmodules and rm -rf'ing the tree that git-submodule cloned should do the trick. Is this documented somewhere?

-- Asheesh.
-- 
Editing is a rewording activity.
Message 1 of 1 in “git submodule remove?”
  1. Asheesh LaroiaMar 31, 2008

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.