Exporting diffs and applying patches Export changes to a patch file $ git diff > patch-file Apply patch file $ git apply patch-file