Question

I have a folder in linux which content folders and many files with name format ".git**?".

how to remove theses files and folders using linux command ?

thanks

Was it helpful?

Solution

Use find as follows:

find /path/to/folder -name ".git*" -print0 | xargs -0 rm -rf
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top