Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I connect Visual Studio for Mac OS to Azure Dev Ops/VSTS?

I have a project in Azure Dev Ops that I need to connect to and I'm using Visual Studio for Mac.

Usually on the PC I can click Version Control or project and browse to it, and then sync. However, I don't see that.

In addition when I look at the project in the website, I don't see any URL that I can use to paste into the repository config.

VSTS config screen image

like image 494
FreeSMIME Support Avatar asked Sep 14 '18 19:09

FreeSMIME Support


2 Answers

To connect Azure Devops Git repo with Visual Studio for MAC, you can follow below steps:

In VS for Mac -> Version Control -> Checkout -> enter the Azure Devops Git repo URL and specify target directory -> checkout.

  • For Azure Devops Git repo URL, you can use either of following:

    • https://account.visualstudio.com/project/_git/repo
    • https://[email protected]/account/project/_git/repo
  • For connecting credential, you can use PAT for Alternate credential.

Besides, you can also refer the document Checkout an existing repository.

like image 115
Marina Liu Avatar answered Sep 17 '22 22:09

Marina Liu


If you navigate to repository you're willing to interact with there's 'Clone' button that gives you all the necessary information to clone the repository.

VSTS - location of <code>Clone</code> button.

This brings up pop up that gives you the URL for repo. Sadly, no option to clone in Visual Studio for Mac (you have to fill the form you found yourself) :/

VSTS clone repository dialog.

like image 32
orhtej2 Avatar answered Sep 19 '22 22:09

orhtej2