问题
This 2014 post indicates there was no native support for Forking from GitHub to AzureDevOps Git - a situation which does not seem to be changed. Is it still necessary to create a middleman to moderate changes from GitHub before pushing them into an AzureDevOps project? If so, does AzureDevOps Git Repo become the Origin? If so, can someone explain why?
回答1:
it is very simple,in AzureDevOps 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.
Pick the right SourceType GIT/TFVS Add the URL probably your github repository URL (but it can be any) if it is publicly accessible this is it, otherwise Check Requires authorization provide username, Password or PAT and Name the new repository in AzureDevOps and done.
回答2:
》》 Is it still necessary to create a middleman to moderate changes from GitHub before pushing them into a VSTS project
Yes, but you can import repository from GitHub directly. If there are some changes in GitHub, you need to refer to that article to push to VSTS git repository unless you import GitHub repository to new VSTS git repository (delete previous repository that created when import repository from GitHub)
》》 If so, does the VSTS Git Repo become the Origin?
No, the VSTS Git repository name won’t be changed. The Origin indicates the remote URL to Fetch and Push instead of the repository name (likes key-value). You also can add more than one, such as Origin2, Origin3.
》》 If so, can someone explain why?
Because there isn’t the feature to update VSTS Git repository from GitHub in VSTS.
来源:https://stackoverflow.com/questions/40752333/fork-github-to-azuredevops