How to connect Azure Repo with VS Code?
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.
Step 1: Login to your Azure DevOps portal using below link.
Step 2: Click “New Project” and provide a name, description and visibility level for your Azure DevOps project and click ‘Create’.
Click on the Repos
Step 3: Click on the “Clone in VS Code” to connect your Azure repo with VS Code.
One pop up will appear in your browser requesting to open VS Code, click “Open Visual Studio 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.
Select a location in your local system where the Azure repo will be cloned.
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)
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.
Add some data to README.md file and provide some commit message and finally press Control + Enter to commit the changes.
You will get a warning, click “Yes”.
Click on the “Push” to push your changes from VS Code to your Azure Repo.
If you now refresh your Azure repo, you will be able to see your changes that you have just pushed.
Hope you have enjoyed this article. To know more about Azure DevOps, please refer below official documentation