git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: `git checkout --orpan` leaves a dirty worktree

From
Jens Lehmann <jens.lehmann@web.de>
Date
Feb 10, 2013, 20:10 UTC
Message-ID
<5117FEC5.8080109@web.de>
In-Reply-To
<7vvca2zhkb.fsf@alter.siamese.dyndns.org>
Am 08.02.2013 21:17, schrieb Junio C Hamano:
Show 7 quoted lines
> 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.

Hmm, "git rm" does remove submodules since 1.8.1 (but they have to be cloned with Git 1.7.8 or newer). Or is there something special about the orphan checkout I'm missing here?

Previous: Junio C HamanoNext: Junio C Hamano
Message 5 of 8 in “`git checkout --orpan` leaves a dirty worktree”
  1. Ramkumar RamachandraFeb 8, 2013
  2. Jonathan NiederFeb 8, 2013
  3. Ramkumar RamachandraFeb 8, 2013
  4. Junio C HamanoFeb 8, 2013
  5. Jens LehmannFeb 10, 2013
  6. Junio C HamanoFeb 8, 2013
  7. Martin von ZweigbergkFeb 8, 2013
  8. Ramkumar RamachandraFeb 8, 2013

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.