I want to try out a patch on gist that modifies the source code of Django:
How do I do it? I have never used git so a step by step instruction would be greatly appreciated.
Thanks
I want to try out a patch on gist that modifies the source code of Django:
How do I do it? I have never used git so a step by step instruction would be greatly appreciated.
Thanks
You can use patch
to apply diffs. Make sure you're in your django source directory (or wherever you want to apply the patch), and run something like patch -p1 < downloaded-patch.diff
.
You may want to experiment with the -p
argument if it fails; -p tells patch
to strip some of the directory prefix for each file in the diff (look at the first line in the diff).