Messages in this thread | | | Date | Fri, 24 Oct 2008 16:56:15 +0200 | From | Björn Steinbrink <> | Subject | git-clean [Was: Linux 2.6.28-rc1] |
| |
On 2008.10.24 17:13:40 +0400, Alexey Dobriyan wrote: > On Fri, Oct 24, 2008 at 01:52:45PM +0100, Alistair John Strachan wrote: > > git reset --hard v2.6.27 ; git clean -d -f > > git status ("Nothing to commit") > > > > cp /path/to/config .config > > make oldconfig prepare > > git clean -d -f ; git reset --hard > > git status ("Nothing to commit") > > > > Observe at this point that include/asm is valid and points to > > include/asm-x86, despite the clean and reset (I guess this file is > > being ignored). > > Use this script for super-clean project-agnostic clean: > > $ cat ~/bin/git-mrproper > #!/bin/sh > git-ls-files -o --directory -z | xargs -0 rm -rf
JFYI, that should be the same as: git clean -xdf
The -x makes it wipe out ignored files as well.
Björn -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |