Setting up git on Ubuntu 12 using Apt-Get
Having just set up a fresh Ubuntu installation, I needed to install git to sync up with my github account. Luckily, this is really easy to do.
First, open up terminal and run the following command:
$ sudo apt-get install git-core
Once it installs, you can configure your username and email by running the following two commands:
$ git config --global user.name "codybonney" $ git config --global user.email "firstname.lastname@example.org"
To check your configuration, you can run the following command:
$ git config --list