-z makes clean output only the names of paths which are or would be
deleted, and separates them with \0.
Use as xargs -0 -a (git clean -nz [-d]) rm -ri, e.g., as a quick
git clean -i.
Signed-off-by: Michael J Gruber g...@drmicha.warpmail.net
---
Here's an alternative approach to that problem
Michael J Gruber g...@drmicha.warpmail.net writes:
-z makes clean output only the names of paths which are or would be
deleted, and separates them with \0.
My first reaction was: Is it not a job for git ls-files?
Actually, you already almost have it:
git clean -d = git ls-files
2 matches
Mail list logo