domingo, dezembro 05, 2021

Import Local Repository to Azure DevOps (GIT)

These are the steps to import the local repository to my Azure DevOps organization.

I have my local repository on C:\Repos\angular-app

 

 For this example I will use Azure CLI. More information about Azure CLI please, check the link below:

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli

Be sure that you add the Azure DevOps CLI extension with the command bellow:

> az extension add --name azure-devops

Login on Azure DevOps using PAT:

> az devops login --organization https://dev.azure.com/myorg

Select your organization and Project:

> az devops configure --defaults organization=https://dev.azure.com/myorg project=myproject

Create your repo (In my example AngularHelloWorld)

> az repos create --name AngularHelloWorld

You can find the details on the Azure devOps to push an existing repository from command line, in my example I just type (In the directory where I have the repository):

>git push -u orign -all

 Now I can see in files on Azure DevOps Repo:

Nenhum comentário: