This project is read-only.

Add-Branch

Summary

Add-Branch creates a branch in a team project.

Obtain the TFS server using the Get-TFS CmdLet.

Parameters

Name Description Example
-tfs TFS server obtained using Get-TFS $tfs = Get-TFS -rul http://address:8080
-ProjectName Name of the project
-source Source directory $/MyProject/Main
-target Target directory $/MyProject/Dev
-description Description of the changeset corresponding to the branch creation

Example

========================================================
Windows PowerShell
PowerShell for Team System
By Noham Choulant http://choulant.blogspot.com
========================================================

PsTFS > : $tfs = tfs address

PsTFS > : $info = add-branch -tfs $tfs -projectname mydemo -source $/mydemo/main -target $/mydemo/dev -description "Added dev branch from main"
Checked in changeset 28

PsTFS > :

Last edited Nov 8, 2009 at 11:40 AM by pc152, version 7

Comments

No comments yet.