How to use find to get all folders that have not a .git folder?
On this structure::
$ tree -a -d -L 2
.
├── a
│ └── .git
├── b
│ ├── b1
│ └── b2
├── c
└── d
└── .git
├── lkdj
└── qsdqdf
This::
$ find . -name ".git" -prune -o -type d -print
.
./a
./b
./b/b1
./b/b2
./c
./d
$
get all folders except .git
I would like to get this::
$ find . ...
.
./b
./b/b1
./b/b2
./c
$