How to patch on Windows?

前端 未结 4 676
一生所求
一生所求 2020-12-30 01:28

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-cha

4条回答
  •  感动是毒
    2020-12-30 01:38

    Thanks to Macke, 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
    

    Simple isn't it ?

    Thank you Macke

提交回复
热议问题