I am newbie to using diff. I wish to create a patch to content of a directory recursively and give it to some one so that he could patch to a directory(slightly different) with him. Thanks in advance. Would be glad if some can clarify me as to how can I make it possible.
Just create a patch using something like
diff -cr originaldirectory/ updateddirectory/ > your.patch
And apply using
patch -p0 -i your.patch
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.