Clone your first repository
Userepo get to clone any repository. Repo Manager automatically creates a bare repository with a worktree for the default branch:
main/ worktree and can start working immediately.
Repo Manager accepts multiple URL formats:
github.com/user/repohttps://github.com/user/repo[email protected]:user/repo.gituser/repo(assumes github.com)
Create a new worktree
Now let’s create a worktree for a new feature branch:feature-auth branch. Make commits, run builds, do whatever you need—it won’t affect your main/ worktree.
Switch between worktrees
Switch to a different worktree withrepo wt go:
List all worktrees
See all worktrees for the current repository:Navigate to a repository from anywhere
Userepo goto to jump to any repository from anywhere in your system:
fzf installed, you’ll get an interactive picker. Otherwise, you’ll go to the default branch worktree.
You can use partial paths with
repo goto. For example, repo goto myapp will navigate to github.com/user/myapp if it exists.Review a pull request
One of Repo Manager’s most powerful features is effortless PR review. Let’s review PR #42:- Fetches the PR branch using GitHub CLI
- Creates a worktree for it
- Changes into the worktree
Complete PR review workflow
Here’s a realistic PR review scenario:Clean up worktrees
After reviewing multiple PRs, you might have several worktrees. Clean up all except the default branch:main/ (or whatever your default branch is).
To remove a single worktree:
You cannot remove the default branch worktree.
repo wt rm main will fail with an error.Common workflows
Parallel development
Work on multiple features simultaneously:Working with existing repositories
If you already have repositories cloned the standard way, convert them:Next steps
You now know the basics of Repo Manager. Here are some areas to explore:Commands reference
Complete reference for all repo commands
Worktree management
Advanced worktree workflows and techniques
Configuration
Customize hooks, aliases, and environment variables
Migration guide
Convert existing repositories to worktree layout