views:

30

answers:

1

I want to try out a patch on gist that modifies the source code of Django:

gist: 550436

How do I do it? I have never used git so a step by step instruction would be greatly appreciated.

Thanks

+4  A: 

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).

oyvindio