简体   繁体   English

将 GitHub 存储库同步到 Azure DevOps

[英]Sync GitHub Repositories into Azure DevOps

I have 2 Repositories in my GitHub Organization Account: Say Repo1 and Repo2 .我的 GitHub 组织帐户中有 2 个存储库:说Repo1Repo2 In order to bring these into Azure DevOps , I followed the below steps:为了将这些带入Azure DevOps ,我遵循了以下步骤:

  1. I signed into Azure DevOps and Created a new Project.我登录了Azure DevOps并创建了一个新项目。
  2. Under Project Settings , Created a new GitHub Connection .Project Settings下,创建了一个新的GitHub Connection
  3. Under Repos , Imported Git Repository using GitHub Clone URL and PAT Authentication .Repos下,使用GitHub Clone URLPAT Authentication导入Git Repository

With this, I'm able to see my GitHub repositories cloned into Azure DevOps GIT .有了这个,我能够看到我的GitHub repositories库克隆到Azure DevOps GIT中。 But there is no sync between them.但是它们之间没有同步。

If I create a new Branch of Repo1 in Azure DevOps GIT then it's not reflecting in GitHub .如果我在Azure DevOps GIT中创建Repo1的新分支,那么它不会反映在GitHub中。 Similary, If I create a new Branch of Repo1 in GitHub then it's not reflecting in Azure DevOps GIT .类似地,如果我在GitHub中创建Repo1的新分支,那么它不会反映在Azure DevOps GIT中。

Is it the right way of Importing from GitHub to Azure DevOps GIT ?GitHub导入到Azure DevOps GIT是正确的方法吗? Am I missing something here?我在这里错过了什么吗? Please guide me.请指导我。

Is it the right way of Importing from GitHub to Azure DevOps GIT?从 GitHub 导入到 Azure DevOps GIT 是正确的方法吗?

Yes, this is the correct way.是的,这是正确的方法。 Importing only creates a copy.导入只会创建一个副本。 It will not keep the two in sync automatically.它不会自动使两者保持同步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM