On Fri, 13 Jan 2006 14:21:19 +0100 "Peter Eriksen" <s022018@student.dtu.dk> wrote: > Hello, > > A way to recursively remove a directory /Some/Dir/ is a follows: > > git ls-files -z Some/Dir >rmfiles > git update-index -z --force-remove --stdin <rmfiles > git commit -a -m "Remove directory Some/Dir" > rm -rf Some/Dir > > What is a better way to do it? > Hi Peter, The following is a bit more concise but not better than your version: rm -rf Some/Dir git ls-files -z -d Some/Dir | git-update-index -z --remove --stdin git commit -m "Remove directory Some/Dir" Git could stand to have an "rm" command to make this easier. Sean - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.htmlReceived on Sat Jan 14 01:07:59 2006
This archive was generated by hypermail 2.1.8 : 2006-01-14 01:08:07 EST