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

Re: List of directories containing only ignored files

From
Marcin Wiśnicki <mwisnicki@gmail.com>
Date
Oct 6, 2011, 14:32 UTC
Message-ID
<CAC9GOO_edkZxU=eO93fuCiV0vFaQjcnj7u8FUPYs-1hXrQX48A@mail.gmail.com>
In-Reply-To
<4E8DB548.5030108@op5.se>
2011/10/6 Andreas Ericsson <ae@op5.se>:
Show 6 quoted lines
> On 10/06/2011 03:56 PM, Marcin Wiśnicki wrote:
>>
>> Alternatively: how to remove such leftovers when switching branches ?
>
> git clean -X -f
>
That also would delete /project1/obj/foo.o which is not what I wanted.
Anyway I think I have found the answer:
 git ls-files -o --directory --exclude-standard
Previous: Andreas Ericsson
Message 3 of 3 in “List of directories containing only ignored files”
  1. Marcin WiśnickiOct 6, 2011
  2. Andreas EricssonOct 6, 2011
  3. Marcin WiśnickiOct 6, 2011

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.