slacky82 slacky82 - 2 months ago 15
Git Question

what is the equivalent in TFS of git cherry-pick

I'm sorry for my question but I'm tfs noob user, what is the equivalent in TFS of git cherry-pick

Answer

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