Удалить файл или директорию в текущих директориях и вложениях
find ./ -type f -name '.git*' -delete
find ./ -type d -name '.git' -exec rm -rf "{}" \;