Export changes to a patch file

$ git diff > patch-file

Apply patch file

$ git apply patch-file