From: Ramkumar Ramachandra Date: Fri, 08 Feb 2013 20:11:20 GMT Subject: Re: `git checkout --orpan` leaves a dirty worktree Message-ID: In-Reply-To: <20130208200402.GB8461@google.com> Jonathan Nieder wrote: > Ramkumar Ramachandra wrote: > One designed for the "going open source" use case, where you have > existing code that you want to put into a new branch without history. > BTW, I suspect a clearer way to say what you meant is "Sounds like a > misfeature" which is gentler and more focused than an implied "What > kind of idiot designed this?" Even if you are thinking the latter. :) Yes, I do feel stupid now. BTW, Is there a better way to clean out the worktree than `git rm -rf .`, since that fails for submodules? The impulsive `reset --hard` obviously fails because there is no HEAD. Thanks.