DEV Community

Discussion on: Add tree to git-bash on Windows 10

Collapse
 
bugb profile image
bugb • Edited

you can use

cmd //c tree
Enter fullscreen mode Exit fullscreen mode

no need to install anything

Collapse
 
xixianykus profile image
xixianykus

This works well for a basic listing of sub directories.

However the first method, using the Linux version, has a lot more options. Using tree -C adds colour making directories easier to visually separate from files. Using tree -L 2 will just go down 2 levels (or any number you use).

I couldn't get the Windows version to list out files from git-bash properly either using the /F switch.