To create patch: just save the svn/git diff. To apply patch, use 'patch' command: patch -p0 -i myPatch.diff