Re: git-rm'ing all dead files
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 24, 2007, 16:25 UTC
- Message-ID
- <Pine.LNX.4.63.0701241723560.22628@wbgn013.biozentrum.uni-wuerzburg.de>
- In-Reply-To
- <loom.20070124T171435-429@post.gmane.org>
Hi,
On Wed, 24 Jan 2007, Pazu wrote:
> I couldn't find an easy way to remove all "dead" files from the index, > i.e., call git-rm on all files that are missing from the working copy.
How about
git ls-files -z --deleted | git update-index -z --remove --stdin
?
Ciao, Dscho