Skip to content

Instantly share code, notes, and snippets.

@Quilted
Last active September 26, 2015 14:27
Show Gist options
  • Save Quilted/1110900 to your computer and use it in GitHub Desktop.
Save Quilted/1110900 to your computer and use it in GitHub Desktop.
Patching with git
// 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