Re: git-rm'ing all dead files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2007/1/24, Johannes Schindelin <Johannes.Schindelin@xxxxxx>:

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.

Thanks, Johannes. This should do the trick.

-- Pazu
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]