Last active
August 29, 2015 14:03
-
-
Save jepio/26f45ffefc556ec815c0 to your computer and use it in GitHub Desktop.
Create and apply a patch
This file contains 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 file file_updated > file.patch # creates a patch describing the changes between two files | |
patch < file.patch # applies the patch to file, making it the same as file_updated (won't change the filename) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Next step is figuring out how to do this in Git.