Answered by:
TFS Command Line - Get Command

Question
-
Hi
I need to take all the changed (CheckIn) code files from TFS to my local using Command line.
my question is- should i need to write get command for every changed file.
I have multiple projects inside a website. Is there any way to get entire changes by a simpler command or by the label which has been made after all the files got CheckIn by the developers.
Thanks
Ram
Friday, September 17, 2010 12:35 PM
Answers
-
Hello Ram,
You can simply do that by creating a workspace and mapping the root folder to one of your local folders then execute get once. This can be done using the following commands:
- tf workspace /new (This will bring up the create workspace dialog, select the server folder you want to get and the disk location to get the files to)
- cd (go to the directory on disk)
- tf get
The tf get will get all the checked in files for you.
Thanks,
Youhana
Youhana Naseim, SDET, Microsoft- Proposed as answer by Youhana Naseim - MSFT Friday, September 17, 2010 2:04 PM
- Marked as answer by RamRajesh Thursday, September 30, 2010 8:02 AM
Friday, September 17, 2010 2:03 PM -
Hi RamRajesh,
Please try use Get-TfsItemHistory, which is one of Windows PowerShell Cmdlets for Visual Studio Team System Team Foundation Server.For more information, you can refer to the following thread:
Hope it helps!
Best Regards,
Cathy Kong
- Marked as answer by Cathy KongModerator Tuesday, September 28, 2010 8:11 AM
Wednesday, September 22, 2010 8:21 AMModerator
All replies
-
Hello Ram,
You can simply do that by creating a workspace and mapping the root folder to one of your local folders then execute get once. This can be done using the following commands:
- tf workspace /new (This will bring up the create workspace dialog, select the server folder you want to get and the disk location to get the files to)
- cd (go to the directory on disk)
- tf get
The tf get will get all the checked in files for you.
Thanks,
Youhana
Youhana Naseim, SDET, Microsoft- Proposed as answer by Youhana Naseim - MSFT Friday, September 17, 2010 2:04 PM
- Marked as answer by RamRajesh Thursday, September 30, 2010 8:02 AM
Friday, September 17, 2010 2:03 PM -
Hi RamRajesh,
Please try use Get-TfsItemHistory, which is one of Windows PowerShell Cmdlets for Visual Studio Team System Team Foundation Server.For more information, you can refer to the following thread:
Hope it helps!
Best Regards,
Cathy Kong
- Marked as answer by Cathy KongModerator Tuesday, September 28, 2010 8:11 AM
Wednesday, September 22, 2010 8:21 AMModerator