osmianski/worktree-manager

Manage Git worktrees with automated port allocation

Installs: 2

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:project

pkg:composer/osmianski/worktree-manager

v0.1.4 2025-11-30 21:14 UTC

This package is auto-updated.

Last update: 2025-11-30 21:29:41 UTC


README

PHP CLI tool for managing Git worktree environments with automated port allocation.

Installation

Install globally via Composer:

composer global require osmianski/worktree-manager

Make sure Composer's global bin directory is in your PATH. Add this to your ~/.bashrc or ~/.zshrc:

export PATH="$HOME/.config/composer/vendor/bin:$PATH"

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 and create a symlink to it in a directory that is already in your path:

cd ~
git clone git@github.com:osmianski/worktree-manager.git

cd worktree-manager
composer install

# Link `worktree` command to the dev project 
ln -s $HOME/worktree-manager/bin/worktree $HOME/.local/bin/worktree

# To switch back to the globally installed version:
rm $HOME/.local/bin/worktree

License

This project is licensed under the MIT License. See the LICENSE.md file for details.