# @northguild/worktree > Documentation for worktree, an open-source CLI that manages git worktrees: one per branch or issue, with env files copied and your editor opened. ## Documentation - [@northguild/worktree: a git worktree for every branch](https://northguild.dev/worktree/): Docs for worktree, an open-source CLI that manages git worktrees: one per branch or issue, with env files copied and your editor opened. - [worktree commands: every command at a glance](https://northguild.dev/worktree/commands/): Every worktree CLI command at a glance: branch, checkout, config, list, open, remove, rename, cleanup and linear-listen, with links to details. - [worktree branch: create a git worktree for a new branch](https://northguild.dev/worktree/commands/branch/): worktree branch creates a new git branch in its own worktree, named from a GitHub, Jira, Linear or ClickUp issue, and can hand it to a coding agent. - [worktree checkout: put a remote branch in a git worktree](https://northguild.dev/worktree/commands/checkout/): worktree checkout puts an existing remote branch in its own git worktree with a local tracking branch, ready for review or an agent prompt. - [worktree cleanup: remove stale git worktrees](https://northguild.dev/worktree/commands/cleanup/): worktree cleanup removes stale git worktrees, such as those whose remote branch is gone after a merged PR, while keeping any with unpushed work. - [worktree config: set up the CLI](https://northguild.dev/worktree/commands/config/): worktree config runs a setup wizard or reads and sets keys like defaultSourceBranch, codeEditor and opener, stored in git config. - [worktree linear-listen: start a worktree when Linear delegates an issue](https://northguild.dev/worktree/commands/linear-listen/): worktree linear-listen listens for Linear agent webhooks and starts a git worktree with your coding agent in it for each delegated issue. - [worktree list: see every git worktree](https://northguild.dev/worktree/commands/list/): worktree list shows the git worktrees in a repository with ahead/behind counts, and optionally agent sessions, churn and Linear issues, or JSON. - [worktree open: reopen a git worktree](https://northguild.dev/worktree/commands/open/): worktree open reopens an existing git worktree in your editor, a Herdr space or a Rex session by branch name, or from an interactive picker. - [worktree remove: delete git worktrees](https://northguild.dev/worktree/commands/remove/): worktree remove deletes one or more git worktrees after a confirmation, holding back any with uncommitted changes, unpushed commits or a live agent. - [worktree rename: rename a worktree and its branch](https://northguild.dev/worktree/commands/rename/): worktree rename moves a worktree's directory and renames its branch in one step, locally, so neither keeps pointing at the old name. - [Configure @northguild/worktree](https://northguild.dev/worktree/configuration/): Configure the worktree CLI: source branch, editor command, agent command, opener, and GitHub, Jira, Linear and ClickUp credentials. - [FAQ: @northguild/worktree and git worktrees](https://northguild.dev/worktree/faq/): Answers on worktree vs git stash, private repos, GitHub Enterprise, Jira Data Center, editors, Herdr, Rex, Windows and where to find every command option. - [Getting Started with @northguild/worktree](https://northguild.dev/worktree/getting-started/): Install the worktree CLI with npm, pnpm, yarn or bun, set a source branch and editor, and create your first git worktree in one command. - [Guides: git worktree workflows with @northguild/worktree](https://northguild.dev/worktree/guides/): Guides for worktree: create git worktrees from GitHub, Jira, Linear and ClickUp issues, copy env files, open editors and set team conventions. - [Create a git worktree from a ClickUp task](https://northguild.dev/worktree/guides/clickup-integration/): Create a git worktree from a ClickUp task: worktree builds the branch name from the task and its tags and can set it to in progress. - [Switch tasks without git stash: use a git worktree per branch](https://northguild.dev/worktree/guides/context-switching/): Stop stashing to switch tasks: keep each branch in its own git worktree so hotfixes, reviews and interrupts never disturb work in progress. - [Open a git worktree in VS Code or any editor](https://northguild.dev/worktree/guides/editor-integration/): Open every new git worktree in VS Code or any editor that opens a directory: set the codeEditor command once and worktree launches it for you. - [Copy .env files into a new git worktree](https://northguild.dev/worktree/guides/env-files/): How worktree copies gitignored .env, .dev.vars and .envrc files into each new git worktree, how to check the list, and how to add others. - [Create a git worktree from a GitHub issue](https://northguild.dev/worktree/guides/github-issue-integration/): Create a git worktree from a GitHub issue: worktree names the branch from the issue, assigns it to you, and works with forks and GitHub Enterprise. - [Open a git worktree as a Herdr space](https://northguild.dev/worktree/guides/herdr-spaces/): Open each git worktree as a Herdr space labelled by branch, optionally with a coding agent already running, and close it on removal. - [Create a git worktree from a Jira issue](https://northguild.dev/worktree/guides/jira-integration/): Create a git worktree from a Jira issue key or URL: worktree builds the branch name, assigns the issue and can move it to In Progress. - [Delegate a Linear issue to a coding agent in a git worktree](https://northguild.dev/worktree/guides/linear-agent-delegation/): Delegate a Linear issue to your agent app and a git worktree appears on your machine with your coding agent started in it. Covers setup in Linear. - [Create a git worktree from a Linear issue](https://northguild.dev/worktree/guides/linear-integration/): Create a git worktree from a Linear issue: worktree names the branch from its labels, links it, and can move the issue to started. - [Open a git worktree as a Rex session](https://northguild.dev/worktree/guides/rex-sessions/): Open each git worktree as a Rex session labelled by branch, with a coding agent started by its brief, and reuse the session if the worktree is open. - [Team conventions for git worktrees](https://northguild.dev/worktree/guides/team-conventions/): Team conventions for git worktrees: branch naming prefixes, a shared source branch in .worktree.yml, and a regular cleanup habit. - [Project configuration for git worktrees with .worktree.yml](https://northguild.dev/worktree/project-configuration/): Share team settings in a committed .worktree.yml: source branch, branch-type prefixes, name template, files to copy and post-create steps. ## Optional - [Changelog: @northguild/worktree release notes](https://northguild.dev/worktree/changelog/): Release notes for the worktree git worktree CLI: current version, how changes ship, and links to CHANGELOG.md and GitHub releases.