Get the size of a repo in linux excluding specific sub-repo -


i want know size of repository in linux, excluding recusively subfolder start horizons:

i tried command couldn't needed result:

find -type d -not -name "horizons*" -exec du -sh {} \; 

du has option --exclude=pattern

du -sh repo --exclude 'horizons*' 

Comments