How to Install and Configure Git on Ubuntu

As they describe it:

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

If you develop websites, like me, or write software of any kind, you should be using a version control system, and Git seems to lead the herd and I personally use it and I recommend it to anybody. This little tutorial is going to teach you how to set up Git on a computer running Ubuntu.

1. Installation

To install git run the following command on terminal:

sudo apt-get install git

2. Configuration

Git uses a name and email to label and identify your commits properly. Git your name, so that it can properly label the commits you make. Git saves your email address into the commits you make.

You configure your name by running this command on terminal:

git config --global user.name "Your Name"

And your email by running this command:

git config --global user.email "[email protected]"

Please keep in mind that the quotation marks (“”) are needed.

And with this you are ready to Git to the real world. Yes, it is that easy.