Create TFS Source Branch using Visual Studio Online / TFS 2015 Api

眉间皱痕 提交于 2019-12-10 19:48:38

问题


Does anyone know how to create a branch using the VSO Api. The documentation for Branches doesn't include a "create".

I have been experimenting with doing it via the ChangeSet Api without much success.

This is TFVC, not Git.


回答1:


Just as what you see in "Branches" page, there isn't any way to create branch with the Rest API. And mostly, you can only read/get the information with the Version Control API for now.

I would recommend you to use Client Object Model Reference if you want to manage the Version Control programmatically. To create a branch, use the "CreateBranch()" method in Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer class.



来源:https://stackoverflow.com/questions/34611326/create-tfs-source-branch-using-visual-studio-online-tfs-2015-api

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!