Git is a free and open source distributed version control system and it was created by Linus Torvalds in 2005. It is written in C and released under released under the GNU General Public License version 2.0. In this article we will see how to install and setup git on your Ubuntu Linux system.
Install and setup Git on Ubuntu:
To install and setup Git on Ubuntu, Open your terminal software using ctrl+alt+T keys and then type the below command and press enter key.
sudo apt install git
It will install the latest version of Git on your system. To verify the installation of git, use the below command in terminal.
which git
Now you need to set your name so your commits will be properly labeled. To configure your username, type the below command. And replace Manikandan D with your name.
git config --global user.name "Manikandan D"
Then set the email address that will be associated with your Git commits.To configure your email, type the below command. And replace [email protected] with your email.
git config --global user.email "[email protected]"
To see the username and password, use the below command
git config --list
How to Install Git GUI Git Cola on Ubuntu
To install Git GUI, just install Git Cola from below code in the terminal app.
sudo apt install git-cola
After that you can open it using below command.
git-cola