Delete all files/directories under current directory tree excluding '.gitignore' files/directories and files/directories matching the patterns '.git' or '.git/*' in their paths
find . ! -name '.gitignore' ! -path '.git' ! -path '.git/*' -exec rm -rf {} \;