Skip to content

Devcontainer not pulling branch from github URL #10946

@joezappie

Description

@joezappie

Does this issue occur when all extensions are disabled?: Yes/No
Yes

  • VS Code Version: 1.96.3
  • OS Version: Windows_NT x64 10.0.26100

Steps to Reproduce:

  1. Create a devcontainer project and commit to github.
  2. Create a branch in project
  3. Copy URL from github
  4. Open Command Palette and use "Clone Repository in Container Volume"
  5. Paste https://github.com/OWNER/REPO/tree/BRANCH
  6. Open dev container and view that it opens the main branch

Additional Info:

In the vscode documentation it specifically states that you can open from github url, branch url or PR url. I've actually tried this for years and never had it work and just switch branches manually once it opens. Would be great to know why this doesnt work though

Developing Inside a Container

Enter microsoft/vscode-remote-try-node (or one of the other "try" repositories), a Git URI, a GitHub branch URL, or a GitHub PR URL in the input box that appears and press Enter.

My repo is a private repo. My branch has the same files as my main branch. I have previously opened my main branch as a devcontainer.

Metadata

Metadata

Assignees

Labels

containersIssue in vscode-remote containersfeature-requestRequest for new features or functionality

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions