Add patch command.

waldyrious/alt-syntax
Camilla Krag Jensen 2014-10-25 13:20:07 +02:00
parent 37eab62385
commit abdf0e1482
1 changed files with 15 additions and 0 deletions

15
pages/common/patch.md Normal file
View File

@ -0,0 +1,15 @@
#patch
> Patch a file or files with a diff file.
- apply a patch
`patch < {{patchfile}}.diff`
- apply a patch to current directory
`patch -p1 < {{patchfile}}.diff`
- reverse a patch
`patch -R < {{patchfile}}.diff`