1. Home
  2. Git
  3. Git Tutorial
  4. Git – Install Client

Git – Install Client

Installation of Git Client

Brief: This tutorial will help you with the installation of Git client on your operating system. Git client application is used to manage local and remote git repository using add, commit, push files.

At the time of the recent update of this tutorial Git version 2.16.2 is the latest stable version available. This tutorial will help you to install Git client on your Linux systems.

Install Git on Ubuntu & LinuxMint

Use the following set of commands to install Git client on Ubuntu, Debian and Linux Mint systems.

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git

Now verify the installed version of Git client.

git --version

git version 2.16.2

Install Git on CentOS/RHEL

Use the following set of commands to install Git client on CentOS, Red Hat and Fedora systems.

First install some required packages.

yum install curl-devel expat-devel gettext-devel
yum install gcc openssl-devel zlib-devel perl-ExtUtils-MakeMaker

Now download latest git source code and extract it.

cd /usr/src
wget https://www.kernel.org/pub/software/scm/git/git-2.16.2.tar.gz
tar xzf git-2.16.2.tar.gz

Let’s compile source code using following commands.

cd git-2.16.2
make prefix=/usr/local/git all
make prefix=/usr/local/git install
echo "export PATH=$PATH:/usr/local/git/bin" >> /etc/bashrc
source /etc/bashrc

Now verify the installed version of Git client.

git --version

git version 2.16.2

Install Git on Windows

Personally, I use Tortoise Git for my Windows operating systems. This is an awesome Graphical tool for managing git repositories in Windows system.

https://tortoisegit.org/download/

Tags , ,