From: Junio C Hamano <gitster@pobox.com>
To: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Jonathan Nieder <jrnieder@gmail.com>, Git List <git@vger.kernel.org>
Subject: Re: `git checkout --orpan` leaves a dirty worktree
Date: Fri, 08 Feb 2013 12:17:24 -0800 [thread overview]
Message-ID: <7vvca2zhkb.fsf@alter.siamese.dyndns.org> (raw)
In-Reply-To: <CALkWK0mdLabT7XyuYsDCROBC5FX+tDgyMnjMRbdkO41PTWd_Ug@mail.gmail.com> (Ramkumar Ramachandra's message of "Sat, 9 Feb 2013 01:41:20 +0530")
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.
next prev parent reply other threads:[~2013-02-08 20:18 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-08 19:50 `git checkout --orpan` leaves a dirty worktree Ramkumar Ramachandra
2013-02-08 20:04 ` Jonathan Nieder
2013-02-08 20:11 ` Ramkumar Ramachandra
2013-02-08 20:17 ` Junio C Hamano [this message]
2013-02-10 20:10 ` Jens Lehmann
2013-02-08 20:12 ` Junio C Hamano
2013-02-08 20:31 ` Martin von Zweigbergk
2013-02-08 20:38 ` Ramkumar Ramachandra
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vvca2zhkb.fsf@alter.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=artagnon@gmail.com \
--cc=git@vger.kernel.org \
--cc=jrnieder@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).