microsoft / vscode-remote-release

Visual Studio Code Remote Development: Open any folder in WSL, in a Docker container, or on a remote machine using SSH and take advantage of VS Code's full feature set.
https://aka.ms/vscode-remote
Other
3.69k stars 296 forks source link

devcontainer clone repo, how to set clone branch #10298

Closed xiangpingjiang closed 2 months ago

xiangpingjiang commented 2 months ago

devcontainer clone repo, how to set clone branch

bamurtaugh commented 2 months ago

They there, have you checked out our docs and getting started tutorial for Dev Containers?

If so, were you still having issues? Sharing more about the steps you've tried and what has/hasn't worked would be very helpful!

xiangpingjiang commented 2 months ago

hello@bamurtaugh

image

I tried clone In volume, it would clone my repo defaut the master branch. But my master branch didn't have a .devcontainer file. I'd like to know how to set the branch

chrmarti commented 2 months ago

F1 > Dev Containers: Clone Repository in Container Volume... has branch picker for GitHub repositories. (Only when you go through the GitHub repository picker.)

chrmarti commented 2 months ago

More general request tracked as: https://github.com/microsoft/vscode-remote-release/issues/4296

xiangpingjiang commented 2 months ago

@chrmarti When my repo is not in github, is there a branch picker?

chrmarti commented 2 months ago

No, not at the moment. https://github.com/microsoft/vscode-remote-release/issues/4296 is tracking that request.