Apply patch By default: git apply my_diff.diff If it does not apply, then: git apply --reject my_diff.diff Git will create files *.rej containing rejected revisions. They must be treated manually. Then run: git -am resolved