Created
June 4, 2020 17:55
-
-
Save jms/b8b0bcb002ce914f4981e4a32115f6f6 to your computer and use it in GitHub Desktop.
Revisions
-
jms created this gist
Jun 4, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ # generate a patch from you feature branch git checkout feature-branch git format-patch --stdout [development branch] > feature-branch.patch # verify the patch git apply --stat feature-branch.patch # dry run to detect errors: git apply --check feature-branch.patch # apply the patch to a new branch git checkout -b new-branch git am feature-branch.patch # apply the patch to a new branch using signoff, useful git am --signoff < feature-branch.patch