Make Diff or Patch File

daim

New member
Messages
130
Points
0
Hi there,

I there any proper way so i can make my own diff or patch file using git? could u guys give an example how to do it. I already browse the internet unfortunetly if my GIT FOLDER updated then i cant make diff files (the one i commit/modify)

Thanks.

 
If you use TortoiseGit, you can diff with the previous version or even virtually any version on the master branch by using the revision log (use right click for it).

 
Last edited by a moderator:
you can simply use this command

Code:
git diff > filename.patch
 
the problem is:

1. I install all my mods on Hercules version 1xx (the version just example)

2. I updated Hercules to version 2xx which it require to me to commit my change ang merge with hercules.

3. I tried apply git difff > filename.patch (it not found my mod as i treat it as no diff coz i merge on version 2xx

any idea to help me?

Thanks

 
After doing some google i think i found the solutions. This is the rite command.

git diff origin > patch.patch

 
Back
Top