Re: git-rm'ing all dead files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 24, 2007, 16:57 UTC
- Message-ID
- <Pine.LNX.4.63.0701241756300.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <9e7ab7380701240851u1249b46ch36450fcf91bf7986@mail.gmail.com>
Hi,
On Wed, 24 Jan 2007, Pazu wrote:
Show 14 quoted lines
> 2007/1/24, Johannes Schindelin <Johannes.Schindelin@gmx.de>: > > > How about > > > > git ls-files -z --deleted | git update-index -z --remove --stdin > > Aha. I was trying > > git-ls-files -d | xargs git rm --cached > > but most removed files contains spaces in their names, and that > screwed git-rm up. I've even noticed the -z option on git-ls-files, > but couldn't find one on git-rm, and I completely forgot about > git-update-index.
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...
Ciao, Dscho