osmianski/worktree-manager
Composer 安装命令:
composer require osmianski/worktree-manager
包简介
Need to maintain multiple working branches simultaneously - whether for long-term parallel development or running AI agents in separate worktrees? Setting up each environment is tedious. This tool creates worktrees with fully working environments in seconds.
README 文档
README
Need to maintain multiple working branches simultaneously - whether for long-term parallel development or running AI agents in separate worktrees? Setting up each environment is tedious.
This tool automates it: create worktrees with fully working environments in seconds, automatically allocate ports, install dependencies, create Docker containers and migrate data.
Installation
Requirements: PHP 8.1 or higher
-
Install globally via Composer:
composer global require osmianski/worktree-manager
-
Make sure Composer's global
bindirectory is in your PATH. The location varies by system:# Most Linux systems export PATH="$HOME/.config/composer/vendor/bin:$PATH" # Or on some systems export PATH="$HOME/.composer/vendor/bin:$PATH"
Add the appropriate line to your
~/.bashrcor~/.zshrc. -
Verify the installation:
worktree --version
Usage
Navigate to your Git repository and create a new worktree:
cd /path/to/your/project
worktree new
For contributors
To contribute to a project clone it locally:
cd ~ git clone git@github.com:osmianski/worktree-manager.git cd worktree-manager composer install
To run the dev version in a terminal session, run the following command:
export PATH="$HOME/worktree-manager/bin:$PATH"
Now if you run worktree, it should show the branch name instead of the version number:
Worktree Manager dev-main
License
This project is licensed under the MIT License. See the LICENSE file for details.
osmianski/worktree-manager 适用场景与选型建议
osmianski/worktree-manager 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 6 次下载、GitHub Stars 达 0, 最近一次更新时间为 2025 年 11 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 osmianski/worktree-manager 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 osmianski/worktree-manager 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 6
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 35
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-30