-n
option before running the commandgit clean -n / git clean -fX -n / git clean -fx -n
Deletes untracked files that are not stagedgit clean -f
Deletes ignored files onlygit clean -f -X / git clean -fX
Deletes ignored and non-ignored (untracked files that are not staged) filesgit clean -f -x / git clean -fx