How to setup git and configure send-email
The following steps will explain how to setup a git on Ubuntu bash shell and configure your mail ID.
Install git and git -core
You can also clone, compile and install the latest version of the git
You need to install the following dependency packages
The .gitconfig file will be as below,
Now you all set to send the mail. you can do a simple test by sending mail to yourself using git send mail. e.g.
Install git and git -core
sudo apt-get install git git-core
You can also clone, compile and install the latest version of the git
git clone https://github.com/git/git.gitmake configure./configure --prefix=/usrmake -j8sudo make install
You need to install the following dependency packages
sudo apt-get updatesudo apt-get upgradesudo apt-get install perl-IO-Socket-SSL libio-socket-ssl-perl libcrypt-ssleay-perl libnet-ssleay-perl libio-socket-ssl-perl perl-mime-tools perl-authen-sasl libauthen-sasl-perl libmime-tools-perl
The .gitconfig file will be as below,
$ cat .gitconfig[user]name = [Username]email = [Your Mail ID][sendemail]smtpencryption = tlssmtpserver = smtp.gmail.comsmtpuser = [Your mail ID]smtpserverport = 587confirm = auto
smtppass = [You need to generate a password in your google account for this application]
Now you all set to send the mail. you can do a simple test by sending mail to yourself using git send mail. e.g.
git send-email <patch-name>.patch --to=<mailing-list ID>
Comments
Post a Comment