docs/workspaces/repositories.mdx
Repositories are the codebases you work with inside a workspace. Each workspace can include one or more repositories, and each repository maintains its own independent git state.
When you add a repository to a workspace, Vibe Kanban creates a git worktree - a separate working directory linked to your repository.
<AccordionGroup> <Accordion title="What is a git worktree?"> A **git worktree** is a git feature that lets you have multiple working directories for the same repository, each on a different branch.Why this matters for you:
Where worktrees are stored: In the .vibe-kanban-workspaces directory (configurable in Settings).
</Accordion>
This means you can have multiple workspaces modifying the same repository on different branches without conflicts. </Accordion> </AccordionGroup>
When creating or editing a workspace, you can add repositories from several sources:
Your recently used repositories appear at the top of the list. Click any repository to add it to the workspace.
Click Browse repos on disk to find repositories that aren't in your recent list. You can:
Folders containing git repositories are marked with a git repo badge.
Click Create new repo on disk to initialise a new git repository:
This creates a new folder with an initialised git repository, ready for use in your workspace.
Each repository in a workspace has a target branch - the branch your changes will eventually be merged into (typically main, master, or develop).
The dropdown shows:
origin/main)To change the target branch after workspace creation:
From the Git panel:
From the command bar:
Cmd/Ctrl + KWhen you create a workspace, a working branch is automatically created for each repository. This is where your changes are made.
The working branch name is based on your task and branch prefix settings (configured in General Settings).
The current working branch is displayed in the Git section of the details sidebar, under "Working Branch".
Workspaces can include multiple repositories for tasks that span several codebases.
Each repository in a multi-repo workspace maintains independent git state:
When working with multiple repositories, the agent can:
Access repository-specific actions through the command bar:
| Action | Description |
|---|---|
| Copy Repo Path | Copy the repository's local path to clipboard |
| Open Repo in IDE | Open the repository in your configured editor |
| Repository Settings | Configure repository-specific settings |
| Create PR | Create a pull request for this repository |
| Merge | Merge the target branch into your working branch |
| Rebase | Rebase your working branch onto the target |
| Push | Push commits to the remote repository |
To remove a repository from a workspace, click the X button next to the repository name.
<Warning> Removing a repository doesn't delete any code or branches. It only removes the repository from the current workspace. </Warning>