首页 > 解决方案 > How to combine two visual studio online environments to work with a single git repository

问题描述

We have two separate visual studio online environments. However, we would like to have one git repository that is synced across the vso environments. So both teams can pull/push and have both the remotes in sync.

标签: gitvisual-studioazure-devops

解决方案


Assume share repoA from VSTS accountA to the users of VSTS accountB. Then you can follow below options based on the situation you need:

Option 1: users from VSTS accountB can only pull/push in client side

For this situation, you just need to provider a PAT from accountA to the users of account.

And the minimum scope of the PAT is only select Code (read and write).

enter image description here

Option 2: users from VSTS accountB can access to repoA from VSTS accountA web page

You can also add users from accountB to accountA, and then set permissions for the users, so that they can access to the repoA (such as create pull request) from VSTS web page.

Note: if users with basic access level are more than 5, you need to pay for the additional users with basic access level.


推荐阅读