GitTree 用户指南
学习如何使用 GitHub 仓库可视化工具的所有功能
什么是 GitTree?
GitTree 是一个免费的网络工具,可将 GitHub 仓库转换为交互式可视化图,让您直观地探索文件结构、分析指标并了解代码组织。
Because GitTree operates entirely client-side, your browser communicates directly with the GitHub API. No code is sent to or stored on any intermediate server. Analysis results are cached locally in your browser's storage to enable near-instant reloads of recently visited repositories.
可视化分析
以树形格式查看完整的仓库结构
详细指标
关于文件和文件夹的统计和图表
易于使用
只需粘贴 GitHub URL,即可开始探索
3步开始
在主页的主字段中,粘贴任意公共 GitHub 仓库 URL。
接受的格式:
• https://github.com/usuario/repositorio
• usuario/repositorio
• https://github.com/usuario/repositorio.git
该工具将获取完整的仓库结构并处理所有信息。根据仓库大小,该过程可能需要几秒钟。
在 "树形" 和 "指标" 选项卡之间切换,探索仓库数据的不同视图。
主要功能
树形视图
探索文件夹和文件的层次结构:
- 点击文件夹展开/折叠
- 使用搜索查找特定文件
- 展开/折叠按钮控制整个树
- 将结构复制为文本或 Markdown
指标选项卡
获取关于仓库的洞察:
- 文件和文件夹数量
- 仓库总大小
- 按文件类型分布图表
- GitHub 统计数据(星标、Fork、Watch)
高级提示
常见问题
问:GitTree 是否适用于私有仓库?
答:不,仅适用于公共 GitHub 仓库。
问:我的数据会被存储吗?
答:不,分析的代码不会被存储。只有元数据会在您的浏览器中本地保留以供缓存。
问:我可以分析任何仓库吗?
答:是的,任何公共 GitHub 仓库。一些非常大的仓库可能会因 GitHub API 而截断其结构。
问:该工具免费吗?
答:是的,完全免费且开源。
Q: Why is the tree loading slowly?
A: Response time depends on the GitHub API and the repository size. Large monorepos with thousands of files may take several seconds. Subsequent loads of the same repository are nearly instant thanks to the local cache.
Q: How do I report a bug or suggest a feature?
A: Open an issue on the GitHub repository. All feedback is reviewed and valued.