Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to patch on Windows?

Tags:

Given a (source) patch file, what's the easiest way to apply this patch on the source files under Windows?

A GUI tool where I can visually compare the unchanged-changed source lines would be great.

like image 412
Ashwin Nanjappa Avatar asked Aug 21 '08 10:08

Ashwin Nanjappa


2 Answers

A good way to apply a patch file under Windows OS is using Git. As I understood, Git is a version control solution like SVN.

Here is a guideline to apply a patch :

  • First of all, download the latest release of the Windows Git Edition here : GIT
  • With the cmd prompt, change directory to the patch file and files to patch
  • Now you can use the following command line :
git apply --ignore-space-change --ignore-whitespace --whitespace=nowarn file.patch
like image 143
Nicolas Thery Avatar answered Oct 11 '22 16:10

Nicolas Thery


Patch for Windows is what you're looking for.

like image 22
SCdF Avatar answered Oct 11 '22 14:10

SCdF