#this will save off a single commits patch, so you can apply it # if you leave off from --stdout to the right, it'll create a patchfile in the current directory with a name # that includes the comment from the commit git format-patch -1 095e61f --stdout > /tmp/patchname.patch # this will check the patch to see if any conflicts will arise when applying it git apply --check /tmp/patchname.patch # this will apply the patch git apply /tmp/patchname.patch