All HowTo's Linux Redhat, Fedora and CentOS Linux

Git For Bitbucket – CentOS Installation Guide

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.

git --version

On my CentOS 7 server i had Git version “”.

Download Git from ““. 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
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

Leave a Reply

Your email address will not be published. Required fields are marked *