How to install Git on Ubuntu 21.04
How to Install Git on Ubuntu 21.04
Introduction:
Git is a software for tracking changes and can also be used to store content.It is a prominent version control system and it aids in handling numerous codes by maintaining a history. It is free and open-source software that also possesses a remote repository. Its main goal is to include speed and data integrity.
Installation Procedure
Checking OS version
linuxhelp@linuxhelp:~$ lsb_release -a
No LSB modules are available…
Distributor ID: Ubuntu
Description: Ubuntu 21.04
Release: 21.04
Codename: hirsute
Swithc to root user
linuxhelp@linuxhelp:~$ sudo -s
[sudo] password for linuxhelp:
Changing directory
root@linuxhelp:/home/linuxhelp# cd /
Installing Git
root@linuxhelp:/# apt install git
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
git-man liberror-perl
Suggested packages:
git-daemon-run | git-daemon-sysvinit git-doc git-el git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn
The following NEW packages will be installed:
git git-man liberror-perl
0 upgraded, 3 newly installed, 0 to remove and 257 not upgraded.
Need to get 4,415 kB of archives.
After this operation, 30.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 liberror-perl all 0.17029-1 [26.5 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 git-man all 1:2.30.2-1ubuntu1 [931 kB]
Get:3 http://in.archive.ubuntu.com/ubuntu hirsute/main amd64 git amd64 1:2.30.2-1ubuntu1 [3,457 kB]
Checking the installed git version
root@linuxhelp:/# git --version
git version 2.30.2
Configure global user by using following command
root@linuxhelp:/# git config --global user.name "linuxhelp"
Configure global Mail by using following command
root@linuxhelp:/# git config --global user.email "user@linuxhelp.org"
Opening the git configuration file
root@linuxhelp:/# vi ~/.gitconfig
Listing the credentionals
root@linuxhelp:/# git config --list
user.name=linuxhelp
user.email=user@linuxhelp.org
By this the installation of Git on ubuntu 21.04 comes to end
Comments ( 0 )
No comments available