From: Junio C Hamano Date: Tue, 12 Mar 2013 16:22:07 GMT Subject: Re: [PATCH v4] submodule: add 'deinit' command Message-ID: <7v1ubk8u6o.fsf@alter.siamese.dyndns.org> In-Reply-To: Phil Hord writes: > I think this would be clearer if 'git deinit' said > > rm 'submodule/*' > > or maybe > > Removed workdir for 'submodule' > > Is it just me? The latter may probably be better. After cloning the superproject, you show interest in individual submodules by saying "git submodule init " and until then your .git/config in the superproject does not indicate that you are interested in that submodule, and you won't have a submodule checkout. "deinit" is a way to revert back to that original state; recording that you are no longer interested in the submodule is the primary effect, and removal of its checkout is a mere side effect of it.