git clean -d -f
removes directories containing files which are ignored. Can I keep the ignored files and still run git clean -d
?
Example:
dir\dir2\file1
.gitignore:
dir\dir2
git clean -d -f
removes dir
and all it's contents. I would expect it to realize that i'm ignoring dir\dir2\file1
and not delete file1
.