This extension aims to make working with worktrees in VS Code easy and accessible, without having to learn the command line interface for worktrees.
This Extension is currently in its very early stages of development and contains a lot of bugs. Use it at your onw risk.
Use the Command Palette to create a new worktree with the Add Worktree command. It guides you through
the process of picking options or branches for your worktree and suggests a location. The default worktree
directory can be adjusted in the extension settings.
Use the Remove Worktree command to choose an existing worktree from a list and remove it.
Use the Switch to Worktree or Open Worktree in New Window commands to open the folder or workspace file of a worktree with VS Code.
Your Workspace needs to be a git repository and the git command has to be available on your system.
This extension contributes the following settings:
gitWorktreeAssistant.addWorktree.defaultWorktreeDirectory: The path where worktrees are reccomended to be created (relative to repo root).gitWorktreeAssistant.openWorktree.workspaceFileLocation: The path where a*.code-workspacefile can be found (relative to worktree root).
If commands do not work for unknown reasons, consider updating your git installation. I used 2.42.0 for development.
These Release Notes document major changes to the extension that change the major or minor version number, e.g. new features.
For all changes, see the change log.
No releases yet... (I regard this as unreleased until major version 1)