how do i exclude more that one directory in this case ... find ./dir1 -name '.git' -prune
Using -o (or):
-o
find . '(' -name a -o -name b ')' -prune -o -print