更新时间:2023-09-08 18:32:04
No such a REST API to create branch for now, I have submitted a user voice here to suggest the feature, you can go and vote it up to achieve that in future.
作为一种解决方法,您可以尝试以下方法在代码或脚本中创建分支:
As a workaround you can try below ways to create a branch in code or script:
CreateBranch()
"方法即可 Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer 类以创建分支.CreateBranch()
" method in
Microsoft.TeamFoundation.VersionControl.Client.VersionControlServer
class to create a branch.tf branch olditem newitem [/version:versionspec] [/noget] [/lock:(none|checkin|checkout)] [/noprompt] [/silent] [/checkin] [/comment:("comment"|@commentfile)] [/author:authorname] [/login:username, [password]] [/recursive]