locked
TFS Command Line - Get Command RRS feed

  • 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
    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:

     

    http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/df19ef6e-f17d-49c5-b87f-48d2b65b7ac0

    Hope it helps!

    Best Regards,

    Cathy Kong

     

    Wednesday, September 22, 2010 8:21 AM
    Moderator

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
    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:

     

    http://social.msdn.microsoft.com/Forums/en-US/tfsversioncontrol/thread/df19ef6e-f17d-49c5-b87f-48d2b65b7ac0

    Hope it helps!

    Best Regards,

    Cathy Kong

     

    Wednesday, September 22, 2010 8:21 AM
    Moderator