How to install and setup Git on ubuntu
Git is a free and open source distributed version control system and it was created by Linus Torvalds in 2005.
Install and setup Git on ubuntu:
To install and setup Git on ubuntu, Open your terminal. To open terminal click the Dash home from unity launcher.And type terminal in the search field. And click Terminal.
Type the below command in the terminal and hit enter.
sudo apt-get update
Type your ubuntu password and hit enter.
Then type the below coomand and press enter key.
sudo apt-get install git
To verify the installation of git, use the below command in terminal
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@example.com with your email.
git config --global user.email "firstname.lastname@example.org"
To see the username and password, use the below command
git config --list
To install Git GUI, just install Git Cola from below code
sudo apt-get install git-cola