Skip to content

Git - Support git worktrees in workspace #68038

@colemickens

Description

@colemickens
$ mkdir repro
$ cd repro
$ mkdir example1
$ cd example1
$ git init; echo "hello" > world.txt; git add world.txt; git commit -m "init";
$ git worktree add ../example1branchA
$ git worktree add ../example1branchB
$ cd ..

$ mkdir example2
$ cd example2
$ git init; echo "hello" > world.txt; git add world.txt; git commit -m "init";
$ cd ..

Scenario:

  1. Open repro directory in VS Code
  2. Go to Git tab.

Expected: "Source Control Providers" lists Git repos.

  • example1
  • example1branchA
  • example1branchB
  • example2

Actual: "Source Control Providers" lists Git repos.

  • example1
  • example2

I sometimes will have lots of branches checked out in parallel on huge repos that I can't afford to clone multiple times. I would also like to be able to use VS Code's source control functionality with these checkouts all the same.

Thanks! and thanks for Code!

Metadata

Metadata

Labels

feature-requestRequest for new features or functionalitygitGIT issueshelp wantedIssues identified as good community contribution opportunitieson-testplanverification-neededVerification of issue is requested

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions