Installation
Choose your preferred installation method to get started with LazyWorktree.Requirements
Before installing LazyWorktree, ensure you have the following requirements:Required
- Git: Version 2.31 or higher
- Forge CLI:
gh(GitHub CLI) orglab(GitLab CLI) for PR/MR status display
Optional
These tools enhance your LazyWorktree experience:- Nerd Font: Icons default to Nerd Font glyphs for a better visual experience
If you see weird characters when starting LazyWorktree, either set
icon_set: text in your configuration or install a font patched with Nerd Font.- delta: Provides syntax-highlighted diffs (recommended)
- lazygit: Enables full TUI git control within LazyWorktree
- tmux / zellij: For per-worktree session management
- aichat: Or similar LLM CLI for automatic branch naming from diffs/issues/PRs
Build Requirements
If building from source:- Go: Version 1.25 or higher
Installation Methods
Homebrew (macOS)
The easiest way to install LazyWorktree on macOS:macOS Gatekeeper Warning
If macOS shows “Apple could not verify lazyworktree”, you have two options: Option 1: System Settings- Go to System Settings
- Navigate to Privacy & Security
- Click “Open Anyway” next to the LazyWorktree warning
Pre-built Binaries
Pre-built binaries are available for multiple platforms:- Visit the Releases page
- Download the binary for your operating system
- Extract the archive
- Move the binary to a directory in your
PATH
Arch Linux (AUR)
For Arch Linux users, LazyWorktree is available in the AUR:From Source
If you have Go installed, you can install LazyWorktree directly: Direct installation:PATH:
Verify Installation
After installation, verify that LazyWorktree is working:Shell Integration (Optional)
For the best experience, set up shell integration to easily navigate to worktrees. Shell helpers change directory to the selected worktree on exit. Zsh helpers are available in theshell/functions.zsh file in the repository. See the shell README for setup details.
Next Steps
Quick Start Guide
Learn how to use LazyWorktree with our quick start guide