Worktrees that set themselves up
Create a worktree from a new branch, an existing one or a pull request number. Mergepond picks the folder, then copies your .env files, links node_modules and runs your install command, so the new checkout is ready to work in.
- Copy
.envfiles - Link
node_modules - Run
pnpm install
- The folder comes from a pattern,
../<repo>.worktrees/<branch>unless you change it. - A setup recipe has three kinds of step: copy files, link files and run commands. Each one shows its progress as it runs.
- Commands run in your login shell inside the new worktree.
- The pattern and recipe are saved in
.mergepond.local.toml, which only you have, or in.mergepond.tomlto share them with your team. - ⌘N creates a worktree; ⇧⌘N creates one from a pull request.
- Reference: Worktrees and worktree setup
- Guide: Worktrees that set themselves up