If we want to see which files will be deleted we can use the
-n
option before running the command
git clean -n  /  git clean -fX -n  /  git clean -fx -n
Deletes untracked files that are not staged
git clean -f
Deletes ignored files only
git clean -f -X  /  git clean -fX
Deletes ignored and non-ignored (untracked files that are not staged) files
git clean -f -x  /  git clean -fx
by Valeri Tandilashvili
4 years ago
Git
1
Pro tip: use ```triple backticks around text``` to write in code fences