January 18, 2013
Using Patch and Diff
This link has useful instructions.
$ sudo diff -ruBN registration_original.php registration_withPhone.php > ~/Desktop/registration.diff
$ sudo patch -p0 < registration.diff
- this command will make original match _withPhone
$ sudo patch -p0 -R < path/file.patch
- reverse a patch; see drupal.org for more.
$sudo apt-get install git-core
$ cd to directory containing files to patch (unless header of patch lists directories below that)
$ sudo git apply [path/to/git_patch]
Posted by kkwaiser at January 18, 2013 11:55 AM