欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 财经 > 创投人物 > 要在 Git Bash 中使用 `tree` 命令,下载并手动安装 `tree`。

要在 Git Bash 中使用 `tree` 命令,下载并手动安装 `tree`。

2024/10/24 3:23:39 来源:https://blog.csdn.net/m0_65152767/article/details/142752006  浏览:    关键词:要在 Git Bash 中使用 `tree` 命令,下载并手动安装 `tree`。

0、git bash 安装

git(安装,常用命令,分支操作,gitee,IDEA集成git,IDEA集成gitee,IDEA集成github,远程仓库操作)

1、下载并手动安装 tree

  1. 下载 tree.exe

    • 从 tree for Windows 官方站点 下载 tree 的 Windows 可执行文件。
    • tree for Window:https://gnuwin32.sourceforge.net/packages/tree.htm
    • 在这里插入图片描述
    • tree-1.5.2.2-setup.exe:https://sourceforge.net/projects/gnuwin32/files/tree/1.5.2.2/tree-1.5.2.2-setup.exe/download?use_mirror=jaist
  2. 安装和配置 tree

    • 下载 tree.exe 后,将其放置在您的 PATH 环境变量中的某个目录中,例如:

      C:\Program Files (x86)\GnuWin32\bin
      

    在这里插入图片描述

    • tree.exe 放在该目录中后,您可以在 Git BashCMD 中使用 tree 命令。

2、tree -L 2

dgq@DESKTOP-JRQ5NMD MINGW64 /f/spid-mini-xxx
$ tree -L 2
.
|-- __MACOSX
|                   `-- spid-mini
|-- project.config.json
|-- project.private.config.json
`-- spid-mini|               `-- 01-dev-tools|               `-- api|               `-- app.js|               `-- app.json|               `-- app.wxss|               `-- assets|               `-- components|               `-- config|               `-- custom-tab-bar|               `-- pages|               `-- permission.js|               `-- project.config.json|               `-- project.private.config.json|               `-- sitemap.json|               `-- utils`-- wxs12 directories, 9 files

3、tree -L 3

dgq@DESKTOP-JRQ5NMD MINGW64 /f/spid-mini-xxx
$ tree -L 3
.
|-- __MACOSX
|                   `-- spid-mini
|       |           `-- 01-dev-tools
|       |           `-- api
|       |           `-- assets
|       |           `-- components
|       |           `-- config
|       |           `-- custom-tab-bar
|       |           `-- pages
|       |           `-- utils
|                   `-- wxs
|-- project.config.json
|-- project.private.config.json
`-- spid-mini|-- 01-dev-tools|   |           `-- 01-component-template|   |           `-- 01-page-template|   |           `-- main|   |           `-- overlay|   |           `-- tab-bar|               `-- testanimate|-- api|   |           `-- auth.js|   |           `-- brand.js|   |           `-- category.js|   |           `-- dashboard.js|   |           `-- exam.js|   |           `-- friend.js|   |           `-- gallery.js|   |           `-- grant.js|   |           `-- hand-card-template.js|   |           `-- hand-card.js|   |           `-- html-to-image.js|   |           `-- notice.js|   |           `-- oss.js|   |           `-- product.js|   |           `-- promotion-registration.js|   |           `-- qualify.js|   |           `-- resource-request.js|   |           `-- share.js|   |           `-- stock.js|   |           `-- test.js|   |           `-- user.js|               `-- wechat.js|-- app.js|-- app.json|-- app.wxss|-- assets|               `-- tab-bar|-- components|   |           `-- aggregation|   |           `-- func|               `-- layout|-- config|   |           `-- file.js|   |           `-- filter-tab.js|   |           `-- page.js|   |           `-- path.js|   |           `-- picker-value.js|   |           `-- product-detail.js|   |           `-- resource.js|   |           `-- share.js|   |           `-- shelfLife.js|   |           `-- sort.js|   |           `-- tab-bar.js|               `-- user.js|-- custom-tab-bar|   |           `-- index.js|   |           `-- index.json|   |           `-- index.wxml|               `-- index.wxss|-- pages|   |           `-- grant|   |           `-- index|   |           `-- receive|   |           `-- resource|   |           `-- share|   |           `-- template|               `-- user|-- permission.js|-- project.config.json|-- project.private.config.json|-- sitemap.json|-- utils|   |           `-- device.js|   |           `-- format.js|   |           `-- request.js|   |           `-- request.js.bak|   |           `-- share-canvas.js|   |           `-- string.js|   |           `-- tab-bar.js|   |           `-- toast.js|               `-- util.js`-- wxs|           `-- format.wxs|           `-- resource.wxs|           `-- status.wxs`-- util.wxs38 directories, 60 files

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com