Friday, March 08, 2013

Team Foundation Server Control 2010 commands

Hi Dear all,
Here I am giving some TFS commands to performs few basic activities like add files / folders to Team Foundation Version Control, checkin etc.

Command:     TF help
Description:   For command line description.

Command:     TF msdn
Description:   For full documentation in Microsoft Document Explorer.


TFS Commands:

TF ADD        
Adds new files and folders from a local file system location to Team Foundation version control.

TF BRANCH     
Copies an item or set of items, including metadata and version control history, from one location to another on the Team Foundation version control server and in the local workspace.

TF BRANCHES  
Displays the history of a branch for a specified file or folder.

TF CHANGESET
Displays information about a changeset and lets you change the associated attributes, such as comments and check-in notes.

TF CHECKIN
Commits pending changes in the current workspace to Team Foundation version control.

TF CHECKOUT
Makes the local file writable and changes its pending Change status to "edit" in the workspace. Edit is an alias for the Checkout command.

TF CERTIFICATES 
Configures how client authentication certificates are used when connecting to TFS through a secure connection.

TF CONFIGURE  
Enables an administrator to view and change the following configuration settings for a team project in the Source Control Settings dialog box:
               - Check-out settings
               - Check-in policies
               - Check-in notes

TF DELETE
Removes files and folders from Team Foundation version control and deletes them from the disk.

TF DESTROY
Destroys, or permanently deletes, version-controlled files from Team Foundation version control.

TF DIFF       
Compares, and if it is possible, displays differences between two files, files in two folders, or a shelveset and a local or server file.

TF DIR        
Displays all or part of the contents of Team Foundation version control.

TF FOLDERDIFF 
Display a visual representation of the differences between files in two server folders, in a server folder and a local folder, or in two local folders.

TF GET
Retrieves a read-only copy of a file from Team Foundation Server to the workspace and creates folders on disk to contain it.

TF HELP       
Displays a help topic to the command-line that contains detailed information about a Team Foundation command.

TF HISTORY 
Displays the revision history for one or more files and folders.

TF LEBEL      
Attaches a label to or removes a label from a version of a file or folder in Team Foundation version control.

TF LABLES     
Displays the list of labels in Team Foundation version control.

TF LOCALVERSIONS 
Displays the version of one or more items in a workspace.

TF LOCK       
Locks or unlocks a file or folder to deny or restore the permissions of users to check out an item for edit into a different workspace or to check in pending changes to an item from a different workspace.

TF MERGE      
Applies changes from one branch into another.

TF MERGES     
Displays detailed information about past merges between the specified source and destination branches.

TF MSDN      
Launches the Microsoft Document Explorer to the documentation page for the command.

TF PERMISSION 
Modifies the user access control list (ACL) and displays authorization settings for an item under version control.

TF PROPERTIES 
Displays information about items under version control.

TF PROXY      
Configures the proxy setting automatically or manually. You can also use the proxy command to add, delete, and list proxy server records.

TF RENAME     
Changes the name or the path of a file or folder. You can use the rename command or the alias move, to move a file or folder to a new location.

TF RESOLVE    
Resolves conflicts between changed items in your workspace and the latest or destination versions of items on the server.

TF ROLLBACK   
Rolls back the changes in a single or a range of changesets.

TF SHELVE     
Stores a set of pending changes, together with pending check-in notes, a comment, and a list of associated work items in Team Foundation Server without actually checking them into the version control server.

TF SHELVESETS 
Displays information about a set of shelved changes.

TF STATUS 
Displays information about pending changes to items in one or more workspaces.

TF UNDELETE   
Restores items that were previously deleted.

TF UNDO
Removes pending changes from a workspace.

TF UNLABEL    
Removes an item from an existing label in Team Foundation version control.

TF UNSHELVE   
Restores shelved file revisions, check-in notes, comments, and work item associations to the current workspace or removes  an existing shelveset from the server.

TF VIEW       
Retrieves a specific version of a file to a temporary folder on your computer and displays it.

TF WORKFOLD   
Creates, modifies, or displays information about the mappings between your workspace folders and the Team Foundation version control folders.

TF WORKSPACE  
Creates, deletes, displays, or modifies properties and mappings associated with a workspace.

TF WORKSPACES 
Displays information about workspaces in the system and updates cached information about a user name or computer name change on Team Foundation Server.


Enjoy.....

1 comment:

Kiquenet said...

I use TFS 2008, VS 2010, Addin VS, TeamFoundationClient.

Is it possible:

use tf merge command programmatically in C# (in my Addin VS code) ?

do Merge, known if there are conflicts and resolve conflicts using API TeamFoundationClient ?

thx. Great Blog !