Last active
August 29, 2015 14:08
-
-
Save bouassaba/7af002af748edb10b2e1 to your computer and use it in GitHub Desktop.
Patch and Diff usage
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
diff -u original.c new.c > original.patch | |
# To create a patch for an entire source tree, make a copy of the tree: | |
# cp -R original new | |
diff -rupN original/ new/ > original.patch | |
# Apply patch | |
patch foo.txt < bar.patch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment