mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 13:42:11 +01:00
patch cheat
This commit is contained in:
parent
2a6d34de35
commit
32802c2907
1 changed files with 13 additions and 0 deletions
13
cheat/cheatsheets/patch
Normal file
13
cheat/cheatsheets/patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Patch one file
|
||||
patch version1 < version.patch
|
||||
|
||||
# Reverse a patch
|
||||
patch -R version1 < version.patch
|
||||
|
||||
# Patch all files in a directory, adding any missing new files
|
||||
# -p strips leading slashes
|
||||
$ cd dir
|
||||
$ patch -p1 -i ../big.patch
|
||||
|
||||
# Patch files in a directory, with one level (/) offset
|
||||
patch -p1 -r version1/ < version.patch
|
Loading…
Reference in a new issue