If you want to check it out, this blog gives a detailed breakdown of how to create and apply a patch. But TLDR, the key commands mentioned are:
git format-patch master --stdout > [name of patch] to create a patch
git apply --stat [patch_name] will show you the stats of what the patch will do
git apply --check [patch_name] will test the patch and print any errors that may occur
- And finally,
git am --signoff < [patch_name] will app the patch with a sign off (run git log to see the sign off tag)
Be sure that commits have been made (preferably in a clean branch) before creating the patch!
If you want to check it out, this blog gives a detailed breakdown of how to create and apply a patch. But TLDR, the key commands mentioned are:
git format-patch master --stdout > [name of patch]to create a patchgit apply --stat [patch_name]will show you the stats of what the patch will dogit apply --check [patch_name]will test the patch and print any errors that may occurgit am --signoff < [patch_name]will app the patch with a sign off (rungit logto see the sign off tag)Be sure that commits have been made (preferably in a clean branch) before creating the patch!