Difference between revisions of "Development using git:Email"

From Alpine Linux
Jump to: navigation, search
(Created page with "=== Email configuration === To be able send your commits (patches) via email you need configure an SMTP server. {{Cmd|git config --global sendemail.smtpserver smtp.exmaple.com}}...")
 
(Email configuration)
Line 12: Line 12:
 
Optionally, it is possible to skip the password prompt by adding it to the configuration with:
 
Optionally, it is possible to skip the password prompt by adding it to the configuration with:
 
{{Cmd|git config --global sendemail.smtppass your_password}}
 
{{Cmd|git config --global sendemail.smtppass your_password}}
 +
 +
To reset CC mail attribute
 +
{{Cmd|git config --global sendemail.suppresscc all}}

Revision as of 15:13, 22 August 2011

Email configuration

To be able send your commits (patches) via email you need configure an SMTP server.

git config --global sendemail.smtpserver smtp.exmaple.com

For sending from a gmail address you can do:

git config --global sendemail.smtpserver smtp.gmail.com git config --global sendemail.smtpserverport 587 git config --global sendemail.smtpencryption tls git config --global sendemail.smtpuser your_email@gmail.com

Optionally, it is possible to skip the password prompt by adding it to the configuration with:

git config --global sendemail.smtppass your_password

To reset CC mail attribute

git config --global sendemail.suppresscc all