GitHub Repo Tree Generator

Generate, filter, and share a clean directory tree for any GitHub repo

Author
Azad-sl
Daily installs
0
Total installs
3
Ratings
0 0 0
Version
1.0
Created
2025-08-01
Updated
2025-08-01
Size
38.9 KB
License
MIT
Applies to

GitTree 🌳

An elegant and efficient GitHub repository tree generator.
Go to Website »


🌎 README

English | 中文


🇬🇧 English Version

An elegant and efficient web tool that generates clear, beautiful directory trees for any public GitHub repository. Designed to help developers quickly visualize, share, and archive the structure of any public repository. Ideal for writing documentation, project overviews, and code sharing. The tool runs entirely on the frontend, with core data fetched by calling GitHub's official REST API (Git/Trees API), ensuring real-time and accurate data.

✨ Features

  • Instant Generation: Get a repository tree just by pasting a link.
  • Advanced Filtering: Filter by depth, exclude files/folders (wildcard * supported), and toggle between "All" and "Folders-only" views.
  • Intelligent Interface: Supports both Light and Dark modes. The language automatically switches between English and Chinese based on your browser settings, and your preferences are saved for your next visit.
  • Multiple Export Options:
    • Copy as plain text.
    • Copy as Markdown code block.
    • Export as a stylish image.
    • 🚀 Cross-Platform Script Generation: One-click download of a script to instantly create the entire directory structure locally.
    • .bat for Windows: Generates a batch file for Windows users.
    • .sh for macOS/Linux: Generates a shell script for macOS and Linux users.

🇨🇳 中文版

一款优雅、高效的网页工具,能为任何公开的 GitHub 仓库生成清晰、美观的目录树。旨在帮助开发者快速可视化、分享和归档任何公共仓库的结构。 适用于编写文档、项目概览和代码分享。该工具完全在前端运行,核心数据通过调用 GitHub 官方的 REST API (Git/Trees API) 获取,确保了数据的实时与准确性。

✨ 核心特性

  • ⚡️ 快速生成: 只需一个链接,即刻生成目录树。
  • 🛠️ 高级过滤: 支持按深度、按名称(支持 * 通配符)排除项目,并能轻松切换“完整”或“仅文件夹”视图。
  • 💡 智能界面: 支持亮色与暗色两种模式。并能根据您的浏览器环境自动切换中英文,您的偏好将被自动记忆,方便下次访问。
  • 🚀 多种导出方式:
    • 复制为纯文本。
    • 复制为 Markdown 代码块。
    • 导出为带有macOS风格窗口的精美图片。
    • 跨平台脚本生成: 一键下载脚本,瞬间在本地创建与仓库完全一致的目录结构。
    • .bat 脚本 (Windows): 为 Windows 用户生成批处理文件。
    • .sh 脚本 (macOS/Linux): 为 macOS 和 Linux 用户生成 Shell 脚本。

🤝 Contributing

Contributions are welcome! Please feel free to submit a pull request.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

📄 License

Distributed under the MIT License. See LICENSE for more information.

image_1206 image_1207