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

Git submodule remove

From
KSKalyan Sriram <kalyan@coderkalyan.com>
Date
Oct 21, 2021, 17:25 UTC
Message-ID
<0101017ca3e30c39-f111f739-4db7-4c1e-aff2-3ee50f546591-000000@us-west-2.amazonses.com>
Hello,

I was curious why git-submodule does not have an `rm` command. Currently I have to manually delete it from .gitmodules, .git/config, .git/modules/, etc. See [0].

I'd like to contribute my first patch to this project by adding this feature, but wanted to check first with the community if there's any particular reason it was chosen not to not be implemented, or if it's simply that nobody has gotten around to it - it seems to be a relatively common feature someone might want.

Anyway, please let me know if this is something that would be accepted, or if anyone has any comments or suggestions.

Thanks! Kalyan

[0] https://git.wiki.kernel.org/index.php/GitSubmoduleTutorial#Removal
Next: brian m. carlson
Message 1 of 15 in “Git submodule remove”
  1. Kalyan SriramOct 21, 2021
  2. brian m. carlsonOct 21, 2021
  3. Junio C HamanoOct 21, 2021
  4. Matheus TavaresOct 21, 2021
  5. Junio C HamanoOct 21, 2021
  6. Kalyan SriramOct 22, 2021
  7. Junio C HamanoOct 22, 2021
  8. Kalyan SriramOct 24, 2021
  9. Junio C HamanoOct 24, 2021
  10. Ævar Arnfjörð BjarmasonOct 22, 2021
  11. Junio C HamanoOct 22, 2021
  12. Randall S. BeckerOct 22, 2021
  13. Kalyan SriramOct 22, 2021
  14. Randall S. BeckerOct 22, 2021
  15. Junio C HamanoOct 22, 2021

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.