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
git apply to apply a patchgit diffgit diff > changes.patch
git apply changes.patch