Using git list-files
gives me the directories and the files tracked within. Is there a command like:
git list-directories
or something similar that lists only the tracked non-empty non-recursive directory names?
git ls-files | xargs -n 1 dirname | uniq
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With