Skip to content

Quick switch between worktrees of a git repository.

Notifications You must be signed in to change notification settings

thenbe/worktree-welder

Repository files navigation

Worktree Welder

Quick switch between worktrees of a git repository.

It preserves the path relative to the root of your repo. In other words, it's the fastest way to go from worktree1/src/types to worktree2/src/types.

Demo

worktree-welder-demo-1.mp4

Usage

  1. Install
pnpm add worktree-welder -g
  1. Add alias to .bashrc or .zshrc
alias ww='worktree-welder && cd $(cat /tmp/worktree-welder)'
  1. Use
cd my-project
ww

Why?

ajeetdsouza/zoxide#528