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

Suggestion: git submodule remove

From
KLKonrád Lőrinczi <klorinczi@gmail.com>
Date
Apr 10, 2015, 11:33 UTC
Message-ID
<CABEDGg8Gos8UTi2U_xgMpx2dJtbtSNCCd2gRr_KR1qESB6gYYA@mail.gmail.com>
Hi GIT devs,
I really miss the
  git submodule remove
command.
This should be handle all the tasks what are needed to remove a submodule.
    - Delete the relevant line from the .gitmodules file.
    - Delete the relevant section from .git/config.
    - Run git rm --cached path_to_submodule (no trailing slash).
    - Delete the now untracked submodule files.

These tasks should be handled automatically. Currently you can only remove a submodule manually, no way to do it automatically with one command. "Removing submodules" and "unsubmodule a submodule" are still a pain to do in GIT, even in v2.3.5.

Please consider implementing the "git submodule remove" command.

Thanks, Konrad Lorinczi

Next: Jens Lehmann
Message 1 of 2 in “Suggestion: git submodule remove”
  1. Konrád LőrincziApr 10, 2015
  2. Jens LehmannApr 11, 2015

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.