Last active
September 26, 2015 14:27
-
-
Save Quilted/1110900 to your computer and use it in GitHub Desktop.
Patching with git
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Making a patch | |
// When patching core, cd to www. When patching a module, cd to the module directory. | |
$ git diff --relative > file.patch | |
// Applying a patch | |
// From the git root directory | |
$ git apply -v --directory www/sites path/to/file.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment