Skip to content

02_diff & patch

Davood Dorostkar edited this page Jun 20, 2022 · 2 revisions

get the difference between 2 files/folders

diff -ruN initialFolder/ UpdatedFolder/ > file.patch

update the initial folder/file using patch file to the updated folder

copy the file.patch into the destination folder to be updated. then run:

patch.exe -p1 -s < file.patch
Clone this wiki locally