GitLens Documentation

Manage Multiple Repositories with GitLens Workspaces

Last updated: July 2025

Workspaces in GitLens help you organize and manage multiple repositories from one convenient interface. Whether you’re working solo or collaborating with a team, Workspaces simplify project access and context switching.

A Workspace can include:

  • Local repositories: The ones currently open in your VS Code window.
  • Cloud Workspaces: Hosted by GitKraken and accessible anywhere (GitKraken account required).

💡 Note: Shared cloud Workspaces require a GitKraken trial or subscription.

Accessing Workspaces

You can open your Workspaces in two ways:

  1. Click the GitLens Home icon in the Activity Bar.
  2. Use the Command Palette (Cmd+Shift+P or Ctrl+Shift+P) and search for GitLens: Open Workspaces.
Workspaces section in the GitLens Home panel

Creating a Workspace

To create a new GitLens Workspace:

  1. In the GitLens Home panel, click the + button next to GitKraken Workspaces.
  2. Enter a name and an optional description.
  3. (Optional) Connect a Git provider (such as GitHub or GitLab) to link repositories.
Create Workspace dialog with name, description, and provider options

Adding Repositories

To add repositories to a Workspace:

  1. Click the + button under the Workspace tab.
  2. To sync repository status, click the Refresh icon.
Add repositories to your Workspace

Locating Repositories

To find the disk location of a repository in a Cloud Workspace:

  1. Click the Locate Repositories (pin icon) next to the repository name.
  2. If you have a folder with multiple repositories, select the parent folder. GitLens will detect and associate all repositories within it.
Locate local disk path of repositories in your Workspace

Opening Repositories

To open a repository from a Workspace:

  • Click the Open Repository in New Window icon.
  • Pro Tip: To open the repository in the current window, hold the Alt/Option key (Mac) while clicking Open Repo.
Open repositories from a Workspace in VS Code

Removing Repositories

To remove a repository from a Workspace:

  1. Right-click the repository.
  2. Select Remove repository from Workspace from the context menu.
Remove repositories from a Workspace

Converting to Cloud Workspaces

To convert a local VS Code workspace into a GitKraken Cloud Workspace:

  1. Click the Convert to Cloud Workspace icon.
  2. Enter a name and description.

Your Cloud Workspace will be synced to your GitKraken account and accessible via GitKraken Desktop, GitLens, and the GitKraken CLI.

Convert local Workspace to GitKraken Cloud Workspace

Understanding Workspace Indicators and Colors

Visual indicators in Workspaces help you quickly understand their status. For example:

  • A green Workspace with an O symbol indicates it is open in your current window.
Workspace status indicators

Workspace Linking

You can link a VS Code workspace to a GitKraken Workspace:

  1. Create a VS Code workspace from an existing GitKraken Cloud Workspace.
  2. Use the Open VS Code Workspace in New Window option (hold Alt to open in the current window).
Create a VS Code workspace from a GitKraken Workspace

When opening a linked workspace, you can choose how to handle repository auto-adding:

  • Automatically add repositories
  • Prompt before adding
  • Disable auto-adding

This behavior is configurable during setup or later via the Change Linked Workspace Auto-Add Behavior command.

To manually sync repositories:

  • Use the Add Repositories from Linked Workspace command at any time.
Manage repository linking for VS Code and GitKraken Workspaces
Have feedback about this article? Did we miss something? Let us know!
On this page