How to Clone (or Checkout) a Specific Branch via Visual Studio 2022

Ardeun August 27, 2022

I think the title pretty much says it all.

I can Clone the full repo but I cannot seem to select the specific Branch I want.

Simply put I just want to do a Fetch. I do not want to do this via the console, but rather within VS via the UI.

Possible ?

 

Thanks in advance.

 

 

1 answer

0 votes
Pramodh M
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 27, 2022

Hi @Ardeun 

I have not tried this, but you can explore the option of specifying the branch URL and see if it's cloning the branch

Heres the reference

https://github.com/microsoft/vscode-remote-release/issues/4296

Otherwise clone the repo with shallow option and then checkout to a specific branch which is optimal for large repositories

Let me know if this helps

Thanks,

Pramodh

Ardeun August 27, 2022

Appreciate the reply Pramodh,

I read the github link however on my interpretation it does not address the issue for me.

I will try that second option you mentioned. While it does sound workable it is of course not ideal as it is double handling and if I am not mistaken (happy to be corrected) I will end up with two sets of files on my drive ?

Cheers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events