How to Install Git on Ubuntu is necessary requirement of a beginner LAMP Developer. Git is a version control System. Git helps you to manage your application code at source level. You can track changes, revert to previous stages, and branch to create alternate versions of files and directories. In this guide we will explain you how to add Git on Ubuntu with command line in really easy steps. After reading this article, you will able to Install, configure, Use Git on your Ubuntu Machine
Install git on Ubuntu
In order to use Git features, we will have install it first on our system. We can install it with apt-get package manager.
sudo apt-get update sudo apt-get install git
The first command will update apt-get package manager with latest version of all software packages.
second command will install Git on your system.
Now Git is in Our system. We can check and Confirm Git with its version.
Now time to configure it with Your Github account. In order to use it to add and edit commit on Github repository.
Setup git Account on Ubuntu
Now time to setup git account on Ubuntu. Git need proper information in order to allow add commit on remote git repository.
The easiest way of doing this is through
Specifically, we need to provide our name and email address because
git embeds this information into each commit we do.
we can configure this information through
git config --global user.name "Your Name" git config --global user.email "firstname.lastname@example.org"
We can see all of the configuration items that have been set by typing:
git config --list
You should now have
git installed and ready to use on your system.