This link has been bookmarked by 20 people . It was first bookmarked on 06 Jun 2008, by Antti Kaihola.
-
21 Jan 10
-
24 Dec 09
-
30 Jul 09
-
21 Apr 09
-
11 Feb 09
-
06 Nov 08
-
Using msmtp to send your patches
NOTE: git send-email supports TLS/SSL now.
Mailing off a set of patches to a mailing list can be quite neatly done by git-send-email. One of the problems you may encounter there is figuring out which machine is going to send your mail. I tried smtp.gmail.com, but that one requires tls and a password, and git-send-email could not handle that.
A neat little program, msmtp http://msmtp.sourceforge.net/ can help you there. Install and configure a .msmtprc file in your home directory, the likes of:
# Example for a user configuration file # Set default values for all following accounts. defaults tls on tls_trust_file /etc/pki/tls/certs/ca-bundle.crt logfile ~/.msmtp.log # My email service account gmail host smtp.gmail.com port 587 from some.user.name@gmail.com auth on user some.user.name@gmail.com password my-secret # Set a default account account default : gmail
This takes gmail as an example. The ca-bundle.crt is the file with CA certificates for Fedora Core 6, for other distros you might have to dig it up from somewhere else. On Ubuntu /etc/ssl/certs/ca-certificates.crt should be used, for example. Now, by giving the full path name to the msmtp program as smtp server to git-send-email, you can send the patches through gmail or some other smtp account with TLS and/or user authentication.
git-send-email --smtp-server /usr/local/bin/msmtp <file|directory>
An alternative to setting --smtp-server each time is to set the global sendemail.smtpserver value.
git-config --global sendemail.smtpserver /usr/local/bin/msmtp
Another option is to configure a local smtp server on your machine, using a well-known SMTP server as smarthost. Then, all applications using localhost as a mail server (e.g. /usr/bin/mail) will work.
On OS X with macports, msmtp can be installed with 'sudo port install msmtp', and '/usr/share/curl/curl-ca-bundle.crt' should work for tls_trust_file.
-
-
31 Oct 08
Paul JonesGeneral tips and tricks for using git, in particular how to push/pull via ssh to host behind gateway
-
06 Jun 08
-
09 May 08
-
30 Apr 08
-
12 Apr 08
-
09 Apr 08
-
12 Sep 07
Hendy IrawanGit allows you to easily fix up the most recent commit you've made on a branch with the --amend option:
For example the following command will allow you to alter the commit message at the top of current head:
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.