Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 752
Andy McCluggage Avatar asked Mar 15 '26 11:03

Andy McCluggage


1 Answers

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.

like image 154
Eddie Chen - MSFT Avatar answered Mar 17 '26 01:03

Eddie Chen - MSFT



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!