wt 是一个极简的 shell 函数工具,通过一条命令即可创建立即可用的 Git worktree,并自动在后台运行仓库特定的初始化脚本。

Stars

3

7 天增长

暂无数据

Fork 数

0

开放 Issue

0

开源协议

MIT

最近更新

2026-07-29

AI 仓库情报摘要
FR-AI / ANALYSIS

为什么值得关注

它结合了创建、环境复制和依赖安装,完全通过一个可 source 的 shell 函数实现,无需二进制文件、守护进程或配置文件,大幅简化了 worktree 的管理流程。

适合谁使用

  • 经常切换多个 Git 分支的开发者
  • 需要隔离且即用环境的 AI 编程代理用户
  • 并行处理多个功能的团队
  • 追求轻量级 worktree 管理工具的 Git 爱好者

典型使用场景

  • 为特性分支创建 worktree 并立即开始工作
  • 为基于代理的开发(如 Claude Code)设置 worktree
  • 快速跳转到现有 worktree 或 PR 检出
  • 任务完成后安全删除 worktree 及其分支

项目优势

  • 仅约 100 行 shell 代码,无外部依赖(只需 git)
  • 后台运行初始化脚本,支持日志和桌面通知
  • 通过 source 嵌入当前 shell,无需子 shell 或 eval 技巧
  • 附带的 Claude Code 技能可自动为仓库生成初始化脚本

使用前须知

  • 仅支持 macOS 和 Linux 的桌面通知
  • 需要 source shell 函数并手动设置环境变量
  • 每个仓库需编写初始化脚本(技能可辅助)
  • 缺失模糊查找或 tmux 集成等高级功能

README 快速开始

Usage

项目描述

Git worktrees that set themselves up. One shell function.

相关仓库与替代方案

根据分类、Topic 和编程语言匹配的相似项目。

0xwilliamortiz
精选
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI 与机器学习大语言模型
577
mereyabdenbekuly-ctrl
精选
mereyabdenbekuly-ctrl GitHub avatar

clodex-ide

Clodex is an open-source, local-first agentic IDE that combines persistent AI tasks, code, terminal, browser, Git, models, memory, and governed execution in one Electron workspace, currently in technical preview.

AI 与机器学习AI 智能体
859
jamesob
精选
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI 与机器学习大语言模型
1,660