The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Pramodh M
Community Champion
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

DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events