Install and setup git on Ubuntu 14.04

warning

This post is more than 5 years old. While math doesn't age, code and operating systems do. Please use the code/ideas with caution and expect some issues due to the age of the content. I am keeping these posts up for archival purposes because I still find them useful for reference, even when they are out of date!

Here we install and do the most basic setup for git . First, install git from the Ubuntu repository:

$ sudo apt-get install git

Next, tell git about yourself (make sure to use your real name and email):

$ git config --global color.ui true
$ git config --global user.name "Your Name"
$ git config --global user.email "your.name@email.com"

That's it, you're ready to go. Also, checkout this nice git reference [doesn't seem to exist anymore...].