Limpiar directorios usando "git clean"

PHOTO EMBED

Thu Jan 19 2023 19:15:53 GMT+0000 (Coordinated Universal Time)

Saved by @dap465

root_dir='/mnt/c/path/to/root/dir'
for dir in $(find $root_dir -name ".gitignore")
do
    cd $(dirname $dir)
    git clean -f -d
    cd $root_dir
done
content_copyCOPY