How do I apply a diff patch on Windows?

Apply Patch

With TortoiseMerge:

  1. Find and open an existing SVN repo directory
  2. Create a new directory named “merges”, if it does not exist already
  3. Copy the file onto which you want to apply the .patch file
  4. ADD and COMMIT to the svn repository before you continue to the next step
  5. Right click on merges and choose Apply patch…
  6. Double click the file from list
  7. The patched file with diff is displayed on the right pane
  8. Click on that pane and hit Save or export with File->Save As…

Alternative screeny if you Open from TortoiseMerge. In the screeny below, directory refers to the “merges” directory mentioned at step 2 above:
Screeny

Screenshot of WinMerge GUI:
Screeny

Leave a Comment