'How to pull specific remote branch in VS Code Remote Container
Is it possible to checkout a specific branch to the container Repo as done by the following command on a "normal" cloned Repo?
git clone --branch <branchname> <remote-repo-url>
I have one branch, which I started to work on in a container but the vscode extension only allows "Clone Repo":
If I clone the Repo on another machine, I am facing an issue due to checkout other remote branches.
Solution 1:[1]
Ok, I guess it works, if I use the shell command shown below:
git clone --branch <branchname> <remote-repo-url>
Afterwards I can open the entire folder within vscode. If Remote-Container Extension is installed, enabled the branch is already set up with a devcontainer.json, a pop-up window will allow you to open the current branch in a container.
As mentioned by @nelsonjchen, it seems , it is only working for Github.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 |