In my git repository I have a small directory structure under the root directory along with a very big directory structure under .git
directory. I would like to use the find
command to get a list of all directories under $(REPO_DIR)
but not including any directory under $(REPO_DIR)/.git
(including). I tried something like
find $(REPO_DIR) -type d ! -name ".git"
and
find $(REPO_DIR) -wholename ".git" -prune -type d
But unfortunately none worked as expected, any suggestions?