How to connect Azure Repo with VS Code?

How to connect Azure Repo with VS Code?

How to connect Azure Repo with VS Code?

Hello Everyone

Welcome to CloudAffaire and this is Debjeet.

Today we will discuss how to connect an Azure repo with VS Code. You can setup Azure repo with VS Code to pull and push changes to Azure repo using VS Code.

Prerequisites:

Step 1: Login to your Azure DevOps portal using below link.

https://dev.azure.com/your_organization_name

Step 2: Click “New Project” and provide a name, description and visibility level for your Azure DevOps project and click ‘Create’.

How to connect Azure Repo with VS Code?

How to connect Azure Repo with VS Code?

Click on the Repos

How to connect Azure Repo with VS Code?

Step 3: Click on the “Clone in VS Code” to connect your Azure repo with VS Code.

How to connect Azure Repo with VS Code?

One pop up will appear in your browser requesting to open VS Code, click “Open Visual Studio Code”

How to connect Azure Repo with VS Code?

Once VS Code is initialized in your local system, you will get another pop-up in VS Code requesting you to open an URI, click “Open.

How to connect Azure Repo with VS Code?

Select a location in your local system where the Azure repo will be cloned.

How to connect Azure Repo with VS Code?

Step 4: In order to clone your Azure repo, VS Code will require to authenticate to your Azure account.

Another pop-up will appear in VS code to Sign-in to your Azure account. Provide your Azure credential and complete the sign-in process. (This is for the 1st time only)

How to connect Azure Repo with VS Code?

Step 5: Once your Azure repo is cloned, you can crate a commit and push the change to your Azure repo from VS Code.

Create a new REDME.md file inside VS Code explorer under your Azure Repo.

How to connect Azure Repo with VS Code?

Add some data to README.md file and provide some commit message and finally press Control + Enter to commit the changes.

How to connect Azure Repo with VS Code?

You will get a warning, click “Yes”.

How to connect Azure Repo with VS Code?

Click on the “Push” to push your changes from VS Code to your Azure Repo.

How to connect Azure Repo with VS Code?

If you now refresh your Azure repo, you will be able to see your changes that you have just pushed.

How to connect Azure Repo with VS Code?

Hope you have enjoyed this article. To know more about Azure DevOps, please refer below official documentation

https://docs.microsoft.com/en-us/azure/devops/?view=azure-devops

Leave a Reply

Close Menu