Friday, May 18, 2012

Basic TFS Commands


Checkout Files

tf get /force /overwrite /login:${username}@{domain},${password} 
Links

diff/merge configuration in Team Foundation - common Command and Argument values



Some TFS commands for the rainy day when your TFS goes broke.
Replace the following in the command below with your own information.
$USERNAME = your username
$PASSWORD = your password
$DOMAINNAME = your domain name ( TLR by default. )

Commands

Q.) List my shelves.
A.) tf /login:$USERNAME@$DOMAINNAME,$PASSWORD shelvesets /owner:c138884
Q.) List files modified in working copy.
A.) tf /login:$USERNAME@$DOMAINNAME,$PASSWORD status /recursive .
NOTE: The last dot refers to current directory. If that argument is not specified tfs lists all changes in the workspace. If you have multiple projects inside the workspace the changes are listed per directory.
Q.) List working copy changeset number.
A.) tf /login:$USERNAME@$DOMAINNAME,$PASSWORD history /recursive /stopafter:1 .
Q.) Update project source code to latest version.
A.) tf /login:$USERNAME@$DOMAINNAME,$PASSWORD get /recursive
Q.) Update to specific changeset.
A.) tf /login:$USERNAME@$DOMAINNAME,$PASSWORD get /recursive /version:171568

No comments:

Post a Comment