threads / discuss / 18289

Deleting a submodule

Subject: Deleting a submodule

## tl;dr

2 messages between Mar 12, 2009 and Mar 13, 2009.

replies: 1people: 2as markdown or json

Pedro Melo· Mar 12, 2009, 17:31 UTC · lore
Hi,

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.
Thanks,
-- 
Pedro Melo
Blog: http://www.simplicidade.org/notes/
XMPP ID: melo@simplicidade.org
Use XMPP!
Alex Riesen· Mar 13, 2009, 08:14 UTC · re: Pedro Melo · lore

Re: Deleting a submodule

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'

← back to recent threads