You are here

Linux: create and apply a patch file

How to create the patch file

diff -u current/sourceCode.c new/sourceCode.c > sourceCode.patch

How to apply the patch file

patch current/sourceCode.c < sourceCode.patch