From: Duy Nguyen Date: Wed, 17 Apr 2013 10:22:59 GMT Subject: Re: [RFC/PATCH] clone: introduce clone.submoduleGitDir to relocate $GITDIR Message-ID: In-Reply-To: <1365881007-25731-1-git-send-email-artagnon@gmail.com> On Sun, Apr 14, 2013 at 5:23 AM, Ramkumar Ramachandra wrote: > This configuration variable comes into effect when 'git clone' is > invoked inside an existing git repository's worktree. When set, > instead of cloning the given repository as-is, it relocates the gitdir > of the repository to the path specified by this variable. This > setting is especially useful when working with submodules. What if I clone a repo then realize it was a mistake and remove it? With current clone, a "rm -rf" would do. With this, I'll need to figure out which subdir in the top .git contains the repo I want to remove. I'm not sure how "git submodule" handles this case though (i.e. total submodule ignorant speaking..) -- Duy