$ git clone git@github.com:kinvolk/fuse-userns-patches.git
$ git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable
$ pushd linux-stable
$ git checkout v4.15-rc1
$ git am ../fuse-userns-patches/patches/00*.patch
Let's assume that the all the required configurations are done in git config, and all the recipients are correctly set in individual patches as well.
$ git send-email \
--thread \
--from="Dongsu Park <dongsu@kinvolk.io>" \
--to=linux-kernel@vger.kernel.org \
--cc=containers@lists.linux-foundation.org \
--cc="Alban Crequy <alban@kinvolk.io>" \
--cc="Dongsu Park <dongsu@kinvolk.io>" \
--cc="Eric W. Biederman <ebiederm@xmission.com>" \
--cc="Miklos Szeredi <mszeredi@redhat.com>" \
--cc="Seth Forshee <seth.forshee@canonical.com>" \
--bcc="Dongsu Park <dongsu@kinvolk.io>" \
patches/00*.patch
Cover letter is available: ./patches/0000-cover-letter.patch
Assuming that there are 12 patches on top of the upstream master, (e.g. v4.15-rc1), generate patches from the kernel git repo:
$ git format-patch -12 --cover-letter --subject-prefix="PATCH v6"
Then the cover letter 0000-cover-letter.patch
will be generated.