Skip to content

How to use Azure git repositories in GitHub Desktop

Go to your repository in Azure and hit ‘Clone’:

Clone Azure repo into GitHub

You will see this screen:

Clone Azure repo into GitHub

Here we will use the Clone into VS Code option, which will open our VS Code and prompt us to select a folder to put the repository in.

We will choose the folder, but we will need credentials to be able to clone the folder into our system.

For that, we will need to hit the ‘Generate git credentials’ button in Azure, which will generate a unique password for our user.

We will need to copy this password and store it securely, because we will not be able to see it again in the site.

Once we have this password, we will enter it when our VS Code prompts us.

After doing all of this process, we will have a repository in our file system. We need to use GitHub Desktop to push and pull from this repository, so we will head out to the GitHub Desktop ‘Add’ menu:

Clone Azure repo into GitHub

And we will choose ‘Existing repository’. This will prompt us to search for our repo in our system.

Once this is done, to push and pull from the repository we will again need to give access to it, so whenever we want to make our first action we will need to introduce again the password we generated in Azure.

Once this is done, our GitHub Desktop will be authenticated and we will be able to make changes in our repo using it.