Search code examples
gittfstfvccherry-pickgit-cherry-pick

What is the equivalent in TFVC of git cherry-pick


I'm sorry for my question but I'm TFS noob user, what is the equivalent in TFVC (Team Foundation Version Control) of git cherry-pick?


Solution

  • First, create a patch for the changeset that you want to cherry-pick:

    tf diff /version:C1234 /format:unified > cherry.patch
    

    (Note: be careful about redirecting to a file from PowerShell. It wants to write UTF-16 files which many programs have a hard time coping with.)

    Then apply the patch using patch:

    patch -p0 < cherry.patch