Bitbucket from Atlasian needs a version of Git above whatever Redhat/CentOS give us. This article explains how to get the right version.
You need to download and install Git manually. But don’t worry, it’s simple. You’ll probably already have Git installed. Check by issuing the command that follows. Don’t worry, you don’t have to remove it. We will deal with that later.
On my CentOS 7 server i had Git version “188.8.131.52”.
Download Git from “https://mirrors.edge.kernel.org/pub/software/scm/git/git-2.9.5.tar.gz“. Check that location for newer versions. Replace my example versions with whatever you actually download.
Untar it with:
tar -xzf git-2.9*
Go into the new directory and run the following commands:
cd ./git-2.9.5 ./configure make make install
At this stage you should be able to run the version check again and see the new version. If not, you probably still have the old version first in line from bash’s path. If so, do this:
rm /usr/bin/git ln -s /usr/local/bin/git /usr/bin/git