I want to list only the directories that are not inside a .git/ directory on my current path.
I'm trying this:
find . -path "**/.git" -prune -o -print -type d
The .git dirs are excluded, but the snippet is also listing files. But it should not as I specified
-type d. How to make the
find utility behave as I described?