Table of Contents

patch

Applying

Check and apply the patch:

git apply --stat fix_empty_poster.patch
git apply --check fix_empty_poster.patch
git am --signoff < fix_empty_poster.patch

Create

last commit

git format-patch -1

current branch and master branch

git format-patch gitlab/master --stdout

squash all commits

git checkout -b temp-squash master
git merge --squash some-name-identifying-my-work
git commit // ... remove the "Squashed commit of the following:" leader

format-patch

git format-patch -M -s master

This will generate patch files in the outgoing subdirectory, automatically adding the Signed-off-by line.

git format-patch -M -n -s -o outgoing origin/master

send e-mail

git send-email --to your@email.address 0001-....