Hello everyone!

We have been investing plenty of personal time and energy for many years to share our knowledge with you all. However, we now need your help to keep this blog running. All you have to do is just click one of the adverts on the site, otherwise it will sadly be taken down due to hosting etc. costs. Thank you.

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.