From: Junio C Hamano Date: Wed, 12 Dec 2012 23:35:59 GMT Subject: Re: [PATCH v2] submodule: add 'deinit' command Message-ID: <7vsj7a268w.fsf@alter.siamese.dyndns.org> In-Reply-To: <20121212230926.GC7729@odin.tremily.us> "W. Trevor King" writes: > Should `deinit` remove the submodule checkout, replace it with the > original gitlink, and clear the .git/config information then? That > would restore the user to the state they'd be in if they were never > interested in the submodule. AFAIU, "restore the user to the state" is the goal. I am not sure what you meant by "replace it with the original gitlink", though. A checkout with a submodule that the user is not interested in would have an empty directory at that path, no?