Re: `git checkout --orpan` leaves a dirty worktree
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 8, 2013, 20:17 UTC
- Message-ID
- <7vvca2zhkb.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CALkWK0mdLabT7XyuYsDCROBC5FX+tDgyMnjMRbdkO41PTWd_Ug@mail.gmail.com>
Ramkumar Ramachandra <artagnon@gmail.com> writes:
> 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.
I _think_ the "git rm" is one of the things on Jens's roadmap. Also I think "reset --hard" these days does know what to do when you do not have any history yet.