Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

How to Clone (or Checkout) a Specific Branch via Visual Studio 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 Aug 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

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



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 ?


Suggest an answer

Log in or Sign up to answer
Site Admin
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

3,485 views 3 10
Read article

Atlassian Community Events