How to clone a specific branch from git Visual Studio 2019? I know how to do it in command but not sure how to di it using new git in Visual Studio 2019.
All I can do is to clone the master first and choose the specific branch from there.
How to clone a specific branch from git Visual Studio 2019? I know how to do it in command but not sure how to di it using new git in Visual Studio 2019.
All I can do is to clone the master first and choose the specific branch from there.
While using Git, its advisable to use a CMD or PowerShell instance. Can you try:
git clone -b branch_name --single-branch 'repo_url'
branch_name is the name of your branch, and repo_url is the link of your remote repository (repository location).
If you want to get it done through the UI:


If you click on different branches, the URLs will be different. For example now I selected constraints-2-0 and as you can see the URL at the top has changed.

There seems to be only one route to get a branch via VS. It cannot be done directly but there is a simple path.
That's it. Hope that helps.