Over a million developers have joined DZone.

Installing Git on Ubuntu

A few libraries need to be installed prior to the installation of Git:

sudo apt-get install libcurl4-gnutls-dev libexpat1-dev gettext   libz-dev libssl-dev


Next, the following command will install Git:
apt-get install git

Do a git clone to check whether the installation is successful:
git clone url
E.g: git clone git://git.kernel.org/pub/scm/git/git.git

Topics:

Published at DZone with permission of Achala Chathuranga Aponso , DZone MVB .

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}