Prerequisites
Before starting, ensure you have:- Git 2.31 or later installed
- A Git repository to work with
- LazyWorktree installed (see Installation)
For PR/MR integration features, you’ll also need
gh (GitHub CLI) or glab (GitLab CLI) installed.Launch LazyWorktree
Run LazyWorktree
Launch the TUI by running:You’ll see the main interface with your worktrees listed (if any exist).
Create your first worktree
Choose creation method
Select from several creation options:
- From current branch - Copy your current branch to a new worktree
- From branch - Create from an existing branch or new branch name
- From PR/MR - Create from a GitHub/GitLab pull/merge request
- From issue - Create from a GitHub/GitLab issue with auto-generated branch name
Enter worktree name
Type the name for your new worktree (or accept the auto-generated name).LazyWorktree will automatically sanitise special characters to be Git-compatible.
Navigate to a worktree
There are two ways to jump into a worktree:Method 1: Direct output
- Select a worktree with
j/k(or arrow keys) - Press
Enter- LazyWorktree outputs the path and exits - Use this with your shell:
Method 2: Shell integration (recommended)
For a better experience, set up shell integration to automatically change directories:zsh
Common operations
View worktree information
- Focus on a worktree to see details in the Status pane (right side)
- View linked PR/MR information
- Check CI status (if GitHub Actions or GitLab CI configured)
- See branch divergence from upstream
Rename a worktree
- Select the worktree
- Press
m(rename) - Enter the new name
- The branch is renamed too if the directory name matches the branch name
Delete a worktree
- Select the worktree
- Press
D(delete) - Confirm the deletion
- Both the worktree directory and branch are removed
Explore more features
Now that you’ve mastered the basics, explore these powerful features:Key Bindings
Complete reference of all keyboard shortcuts
Creation Modes
Advanced worktree creation from PRs, issues, and more
PR/MR Integration
Link worktrees with GitHub and GitLab pull requests
Custom Commands
Set up tmux/zellij sessions and custom workflows
Quick reference
Essential key bindings to remember:| Key | Action |
|---|---|
? | Show help |
c | Create worktree |
Enter | Jump to worktree (outputs path) |
m | Rename worktree |
D | Delete worktree |
r | Refresh list |
q | Quit |
1-5 | Focus pane (1=Worktrees, 2=Status, 3=Git Status, 4=Commits, 5=Notes) |
Next steps
Configure your setup
Customise LazyWorktree with your preferred theme, layout, and behaviour.See Configuration
Set up shell integration
Install shell functions for seamless directory navigation.See Shell Integration
Explore advanced features
Learn about notes, taskboards, CI status tracking, and custom commands.See Core Features