Sending patches

In the previous example, you saw how to create and apply patches. You can, of course, attach these patch files directly to an email, but Git provides a way to send patches directly as emails with the git send-email command. The command requires some setting up, but how you do that is heavily dependent on your general mail and SMTP configuration. A general guide can be found in the Git help pages or by visiting: http://git-scm.com/docs/git-send-email.

Get Git Version Control Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.