Using patch files with TFS (patch file is from subversion, git, etc)

Can patch files be read by TFS or visual studio? I’d like to either create a shelveset or apply the patch to a workspace in TFS.

  • Restore remote Git branch
  • Finding most changed files in Git
  • Consistent tagging across multiple projects in separate Git repositories
  • How to setup SSH keys for buildbot user
  • git branch -d fails even though branch's changes have been applied to master
  • How do I merge a pull request on someone else's project in git?
  • Downloading a directory inside a git repo
  • How to remove left over .rej files after reverting from a git patch?
  • Git subtree or Git Sub module for large resources?
  • How to enable online editing of repository source in git server?
  • Git alias with positional parameters
  • Map remote repository to an existing directory with files
  • 2 Solutions collect form web for “Using patch files with TFS (patch file is from subversion, git, etc)”

    According to this question:

    • You can create unified diff patch files with:
    tf diff /format:unified [/shelveset:] >filename.diff

    with tf.exe being usually here C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE (See tf Command-Line Utility Tool in Team Foundation Server).

    • You cannot import/use a patch file in TFS.
    Git Baby is a git and github fan, let's start git clone.