Re: Easy way to empty working tree?

From: Alex Riesen <raa.lkml@gmail.com>
Date: 2006-07-21 17:08:40
On 7/21/06, Linus Torvalds <torvalds@osdl.org> wrote:
> > After mothballing the repository with git-repack -a -d and git clean
> > -d -x, is there a convenient one-liner to empty the files out the
> > working directory?
>
> Well, you can do
>
>         git ls-files -z | xargs -0 rm -f --
>

That'd be not enough for kernel after it was compiled.
Maybe this:

   find . -maxdepth 1 -not -name .git -not -name . -print0 | xargs -0 rm -rf --
-
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.html
Received on Fri Jul 21 17:09:19 2006

This archive was generated by hypermail 2.1.8 : 2006-07-21 17:09:49 EST