Earlier this month, I had a requirement to synchronize an external git repo(GitHub, Bitbucket, GitLab etc) to Azure Repos using Azure Pipelines. Unfortunately, there is no feature in Azure Repos now to synchronize with external repositories except a one time import function. To solve this, I had to write some tweak script containing git commands and execute it using the Azure Pipelines. Below are the steps I took in Azure DevOps to achieve the repo synchronization with GitLab Repo.

  1. First, we need to generate PAT from  Azure Devops and  GitLab.
  2. Create a service connection in Azure Devops Project.

#gitlab #azure-devops #git #devops

How to Synchronize Azure Repos with External Git Repos
2.95 GEEK