# Q: how to remove or move submodules?

2 messages from 2008-07-13 to 2008-07-22. Participants: Rob Sanheim, Petr Baudis.
Thread: https://gitlist.dev/t/14435

## Rob Sanheim, 2008-07-13 06:38

Subject: Q: how to remove or move submodules?
Message-ID: <fc113d400807122338o637cc159n5e19fea5a15dc866@mail.gmail.com>
URL: https://gitlist.dev/e/fc113d400807122338o637cc159n5e19fea5a15dc866%40mail.gmail.com

```
Hello

I don't see any info on what the 'right' way is to delete or move
submodules around in any of the docs.  Normally I end up just hacking
my way through it and hand modifying the .gitmodules file, but this
seems wrong.  Is there a recommended way?

thanks,
Rob

```

## Petr Baudis, 2008-07-22 23:22

Subject: Re: Q: how to remove or move submodules?
Message-ID: <20080722232240.GL32184@machine.or.cz>
URL: https://gitlist.dev/e/20080722232240.GL32184%40machine.or.cz
In-Reply-To: <fc113d400807122338o637cc159n5e19fea5a15dc866@mail.gmail.com>

```
  Hi,

On Sun, Jul 13, 2008 at 02:38:51AM -0400, Rob Sanheim wrote:
> I don't see any info on what the 'right' way is to delete or move
> submodules around in any of the docs.  Normally I end up just hacking
> my way through it and hand modifying the .gitmodules file, but this
> seems wrong.  Is there a recommended way?

  currently, you have to hand-modify the .gitmodules file, then remove
the directory from the working tree and then from the index. In part
inspired by your question, I have submitted patches to add git mv and
git rm support for submodules some time ago, but they probably won't
make it to 1.6.0.

				Petr "Pasky" Baudis

```
