Pages

Tuesday, January 5, 2021

Creating an Azure DevOps mirror for Gitlab repository

Intro

I have a GitLab repo that I'm working and I need to create a mirror of that repo to Azure DevOps. Here's the step.

Prerequisite

Gitlab and Azure Devops account
Already existed Gitlab Repository

Steps

Azure DevOps

  1. Create a “New Project” in Azure DevOps with the same name as GitLab repository
    *note: Must be a New Project. NOT a new repo under another project



  2. Got to “Repos” and “Generate Git Credentials”.

  3. Copy the  Clone URL and Password

GitLab

  1. Open Project. Go to “Settings -> Repository -> Mirroring repositories”. Expand it.


  2. Paste the DevOps “Clone URL” into the GitLab “Git repository URL” field

  3. Paste the DevOps “Password” into the GitLab “Password” field

  4. Click “Mirror Repository” button, then “Update Now” button




Done





No comments:

Post a Comment