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
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter