Patch
Create a Git Patch
git format-patch -1 HEAD
-n
number of commits from the topmost one
Source: stackoweflow
Apply Git Patch
git am < file.patch
git format-patch -1 HEAD
-n
number of commits from the topmost one
Source: stackoweflow
git am < file.patch