You forgot the asterisk :
-name "*.git"</code></pre> You can even use the -delete option: find <path_where> -type d -name '*.git' -delete</code></pre>
You forgot the asterisk :