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

sudo apt-get install git git-core

You can also clone, compile and install the latest version of the git

git clone
make configure
./configure --prefix=/usr
make -j8
sudo make install

You need to install the following dependency packages

sudo apt-get update
sudo apt-get upgrade
sudo 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
        name = [Username]
        email = [Your Mail ID]
        smtpencryption = tls
        smtpserver =
        smtpuser = [Your mail ID]
        smtpserverport = 587
        confirm = 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>


Popular posts from this blog

Benchmarking BigData

Apache Ambari on ARM64

CentOS: Create and share your own YUM repository