andylockran
andylockran

Reputation: 181

Forking Github into AzureDevops

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.

Is this feasible / on a roadmap?

Upvotes: 6

Views: 2539

Answers (1)

Leo Liu
Leo Liu

Reputation: 76690

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.

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.

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:

enter image description here

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

enter image description here

However, according to the ticket on the github:

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.

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.

Hope this helps.

Upvotes: 10

Related Questions