git apply
to apply a patch
Create patch file by saving the output of
git diff
git diff > changes.patch
Apply the patch in another copy of the repo
git apply changes.patch