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

Re: git-rm'ing all dead files

From
PPazu <pazu@pazu.com.br>
Date
Jan 24, 2007, 17:02 UTC
Message-ID
<9e7ab7380701240902i4168cc40x1629e76bdf75dcfb@mail.gmail.com>
In-Reply-To
<Pine.LNX.4.63.0701241756300.22628@wbgn013.biozentrum.uni-wuerzburg.de>
2007/1/24, Johannes Schindelin <Johannes.Schindelin@gmx.de>:
Show 6 quoted lines
> You _can_ use
>
>         git ls-files -z -d | xargs -0 git rm --cached
>
> So, you did not find that option with git-rm, because it is an option to
> xargs...

I remember trying that, but git-rm was still confused about spaces in filenames. I'll try it again the next time I'm in a situation like that.

-- Pazu
Previous: Johannes Schindelin
Message 5 of 5 in “git-rm'ing all dead files”
  1. PazuJan 24, 2007
  2. Johannes SchindelinJan 24, 2007
  3. PazuJan 24, 2007
  4. Johannes SchindelinJan 24, 2007
  5. PazuJan 24, 2007

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.