Steps below will show you how to install and configure git on Ubuntu.


Install


inanzzz@inanzzz:~$ sudo apt-get update
inanzzz@inanzzz:~$ sudo apt-get install git

Configure


inanzzz@inanzzz:~$ git config --global user.name "Your Name"
inanzzz@inanzzz:~$ git config --global user.email "your_email@domain.com"

Verify


inanzzz@inanzzz:~$ git config --list
user.name=Your Name
user.email=your_email@domain.com

Change


inanzzz@inanzzz:~$ git config --global user.email "New Name"
inanzzz@inanzzz:~$ git config --global user.email "new_email@domain.com"

or


inanzzz@inanzzz:~$ nano ~/.gitconfig

Test GitHub connection


See if your GitHub connection still works.


inanzzz@inanzzz:~$ ssh -T git@github.com
inanzzz@inanzzz:~$ ssh -T git@github.com
Hi Your Name! You've successfully authenticated, but GitHub does not provide shell access.