Is it possible to make git clean -xdf using an additional filter? I want to delete all unplayable files, but save files with a specific extension.
Use the parameter -eto specify an exception pattern.
-e
Example. This removes all unnecessary files, except those that have the extension .txt:
.txt
git clean -xdfe *.txt