tldr/pages/common/patch.md

16 lines
221 B
Markdown
Raw Normal View History

2014-10-25 15:20:07 +04:00
#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`