Skip to content

Patch

Create a Git Patch

git format-patch -1 HEAD
where - -n number of commits from the topmost one

Source: stackoweflow

Apply Git Patch

git am < file.patch