Re: `git checkout --orpan` leaves a dirty worktree
- From
Ramkumar Ramachandra <artagnon@gmail.com>
- Date
- Feb 8, 2013, 20:11 UTC
- Message-ID
- <CALkWK0mdLabT7XyuYsDCROBC5FX+tDgyMnjMRbdkO41PTWd_Ug@mail.gmail.com>
- 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.