Re: Easy way to empty working tree?
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jul 21, 2006, 07:08 UTC
- Message-ID
- <81b0412b0607210008l45198948sab391a8cf94c7af8@mail.gmail.com>
- In-Reply-To
- <Pine.LNX.4.64.0607201944460.29649@g5.osdl.org>
On 7/21/06, Linus Torvalds <torvalds@osdl.org> wrote:
Show 8 quoted lines
> > 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 --