Continuation
Continuation

Reputation: 13050

How do I apply a patch from gist to the Django source?

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.

Upvotes: 2

Views: 2924

Answers (1)

oyvindio
oyvindio

Reputation: 797

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

Upvotes: 7

Related Questions