Git clean inside ignored folders

I have a folder foothat is included in gitignore:

 - .gitignore  (this contains 'foo')
 - foo
    *
    *** bar

When I run git clean -for git clean -f -x, this does not delete the line (bar is a regular file).

Is there a way to tell git to clear inside ignored folders?

+5
source share
1 answer

git clean -fdxwill delete all unprocessed files, including directories. -dthe cleaner must go down to the raw directory.

+13
source

All Articles