简体   繁体   中英

How to make a pull request to Visual Studio Online

I use Visual Studio Online (VSO), and few days ago the VSO team announced support of pull requests.

I would like to ask, is it possible to forbid commits without a pull request from Visual Studio 2013?

I mean, that I want forbid my team to commit changes, until they pull request first, to allow the repository owners to accept or decline changes.

The idea behind pull requests, as now (June 2014) supported by Visual Studio Online , is to have two upstream repositories:

  • one accepting pull requests
  • one from which pull requests are done.

http://blogs.msdn.com/cfs-filesystemfile.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-45-92-2014-06-pull_2D00_requests/4405.VCtrlGitPullReqNew2.png

So, as long as the team has only access to the second repository, and are not members of the first repositories, they will only push to that second repository. They couldn't push to the first.

If they want their commits to show up in the first repository, they won't have any other way than making a pull request, which should be what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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