July 2018
Intermediate to advanced
354 pages
10h 57m
English
First, we'll send the same patch as the one we created in the first example. We'll send it to ourselves using the email address we specified in our Git configuration. Let's create the patch again with git format-patch and send it with git send-email:
$ git format-patch -1 -o latest-commit latest-commit/0001-Calculate-pi-with-more-digits.patch
Save the email address from the Git configuration to a variable as follows:
$ emailaddr=$(git config user.email)
Send the patch using the email address in both the --to and --from fields:
$ git send-email --to $emailaddr --from $emailaddr latest-commit/0001-Calculate-pi-with-more-digits.patch latest-commit/0001-Calculate-pi-with-more-digits.patch (mbox) Adding cc: John Doe <john.doe@example.com> ...
Read now
Unlock full access