将Github分叉到AzureDevops [英] Forking Github into AzureDevops

查看:66
本文介绍了将Github分叉到AzureDevops的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将一个github存储库派生到AzureDevOps中,同时保留AzureDevOps内部的功能,以便在github内创建一个存储库时不断从github提取更改.

I'm wanting to fork a github repo into AzureDevOps, whilst retaining the capability within AzureDevOps to keep pulling changes from github as-per forking a repo within github.

在路线图上可行吗?

推荐答案

我想将一个github存储库派生到AzureDevOps中,同时保留AzureDevOps内部的功能,以便在github内创建一个存储库时不断从github提取更改.

I'm wanting to fork a github repo into AzureDevOps, whilst retaining the capability within AzureDevOps to keep pulling changes from github as-per forking a repo within github.

恐怕GitHub中没有适用于Azure Devops的"Fork"的现成功能.但是您可以直接从GitHub导入存储库.

I am afraid there is no such out of box function of the "Fork" in GitHub for Azure Devops. But you can import repository from GitHub directly.

在Azure DevOps中,您要克隆存储库或创建新团队项目的项目,单击代码"选项卡.单击代码"选项卡(位于左上方)中的存储库菜单,然后选择导入存储库":

In Azure DevOps the project you want to clone the repository or create a new team project, click code tab. Click repository menu in Code Tab (it is on the top left side) and select Import repository:

然后,选择SourceType GIT 并添加您的github存储库URL:

Then, slect the SourceType GIT and add your github repository URL:

但是,根据github上的票证:

However, according to the ticket on the github:

当前没有支持自动运行的Azure DevOps构建在Azure Repos中更新GitHub repo fork.

Currently there is no Azure DevOps' build in support for automatically updating your GitHub repo fork in Azure Repos.

我们需要在开发机器上手动进行同步.

We need do the sync manually on the dev machine.

此外,还有一个关于如何在Visual Studio Online上分叉Git存储库,但是在将它们推入VSTS项目之前,我们仍然需要创建一个中间人来缓和来自GitHub的更改.

Besides, there is an old document about How-To Fork Git Repositories on Visual Studio Online, but we still need to create a middleman to moderate changes from GitHub before pushing them into a VSTS project.

希望这会有所帮助.

这篇关于将Github分叉到AzureDevops的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆