定制 osmianski/worktree-manager 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

osmianski/worktree-manager

最新稳定版本:v0.1.9

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

  1. Install globally via Composer:

    composer global require osmianski/worktree-manager
  2. Make sure Composer's global bin directory 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 ~/.bashrc or ~/.zshrc.

  3. 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.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-30