How to add the ‘tree’ command to git-bash in Windows?

You could also use "cmd //c tree" to use Windows’ tree

Explanation:

  • Launch cmd with ‘/c’ argument and run tree, then terminate

/C Carries out the command specified by string and then
terminates

(extra slash for escaping)

/a use to run with ascii chars in case it doesn’t display right.

Answered in greater detail here: https://stackoverflow.com/q/515309/1261166

You may Also Like:

None found

Leave a Comment