Pushing your code to GitHub and Azure Repos at the same time

Wesley Camargo
3 min readMay 22, 2020

If you have an existing repository hosted by an Azure Repos or in GitHub, you can add new remotes easily. Let’s see how we can do it!

Creating and versioning a local project

Let’s create our project. In an empty directory type the CLI commands below:

It will create a new .net core web application, with a gitignore file and versioned in a local git.

Creating an Azure Repos repository and pushing your code

In your Azure DevOps account, follow these steps:

In the next screen disable the ‘Add a README’ option and enter your repo name:

--

--