You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/05-distributed-git/sections/contributing.asc
+26-3Lines changed: 26 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -706,7 +706,32 @@ You can set each value separately with a series of `git config` commands, or you
706
706
-----
707
707
708
708
If your IMAP server doesn't use SSL, the last two lines probably aren't necessary, and the host value will be `imap://` instead of `imaps://`.
709
-
When that is set up, you can use `git send-email` to place the patch series in the Drafts folder of the specified IMAP server:
709
+
When that is set up, you can use `git imap-send` to place the patch series in the Drafts folder of the specified IMAP server:
710
+
711
+
[source,console]
712
+
-----
713
+
$ cat *.patch |git imap-send
714
+
Resolving imap.gmail.com... ok
715
+
Connecting to [74.125.142.109]:993... ok
716
+
Logging in...
717
+
sending 2 messages
718
+
100% (2/2) done
719
+
-----
720
+
721
+
At this point, you should be able to go to your Drafts folder, change the To field to the mailing list you're sending the patch to, possibly CC the maintainer or person responsible for that section, and send it off.
722
+
723
+
You can also send the patches through an SMTP server. As before, you can set each value separately with a series of `git config` commands, or you can add them manually in the sendemail section in your `~/.gitconfig` file:
724
+
725
+
[source,ini]
726
+
-----
727
+
[sendemail]
728
+
smtpencryption = tls
729
+
smtpserver = smtp.gmail.com
730
+
smtpuser = user@gmail.com
731
+
smtpserverport = 587
732
+
-----
733
+
734
+
After this is done, you can use `git send-email` to send your patches:
710
735
711
736
[source,console]
712
737
-----
@@ -739,8 +764,6 @@ References: <y>
739
764
Result: OK
740
765
-----
741
766
742
-
At this point, you should be able to go to your Drafts folder, change the To field to the mailing list you're sending the patch to, possibly CC the maintainer or person responsible for that section, and send it off.
743
-
744
767
==== Summary
745
768
746
769
This section has covered a number of common workflows for dealing with several very different types of Git projects you're likely to encounter, and introduced a couple of new tools to help you manage this process.
0 commit comments