How to Install Git on Ubuntu Linux


Installing Git on Ubuntu Linux

In order to install Git on Ubuntu Linux, you can make use of apt-get command,

 # sudo apt-get install git 

Reading package lists... Done
...
The following NEW packages will be installed:
  git git-man less libcbor0.6 libcurl3-gnutls liberror-perl libfido2-1
  libxext6 libxmuu1 openssh-client patch xauth
...
After this operation, 43.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] 


# git --version
git version 2.25.1
Advertisements
Try Out Code2care Dev Tools:

Advertisements

Advertisements
Code2care is an initiative to publish and share varied knowledge in programming and technical areas gathered during day-to-day learnings and development activities.

Students and software developers can leverage this portal to find solutions to their various queries without re-inventing the wheel by referring to our easy to understand posts. Technical posts might include learnings, tutorials, trouble-shooting steps, video tutorials, code snippets, how-to, blogs, articles, etc.

🎉 We are celebrating the 10th years of Code2care! Thank you for all your support!

We strongly support Gender Equality & Diversity.