How to install git on Linux Web Hosting

Git is a free and open source distributed version control system designed to increase efficiency and improve team workflows.

DIFFICULTY Basic - 1 | Medium - 2 | Advanced - 3
TIME REQUIRED 15-30+ min
RELATED PRODUCTS Shared Web Hosting

This article will show you how to install git on Shared Web Hosting

Install Git

First, you need to log in to your Web Hosting account via SSH. See this help article for questions on using SSH.

Navigate to your home directory, and download the proper RPM. In this example we will be using git 1.8.1.2

From your home directory, run the following command:

wget https://git-core.googlecode.com/files/git-1.8.1.2.tar.gz

Then, unpack the tar file:

tar -zxf git-1.8.1.2.tar.gz

And cd into the newly created git-1.8.1.2 directory

cd git-1.8.1.2

Make sure that it is installed:

~/opt/usr/bin/git --version
git version 1.8.1.2

Get git on your path and tell Git not to do SSL verification. If you haven't already, create a ~/.bash_profile file and add the following to it:

export GIT_SSL_NO_VERIFY=true
PATH=$PATH:$HOME/opt/usr/bin
export PATH
GIT_EXEC_PATH=$HOME/opt/usr/libexec/git-core
export GIT_EXEC_PATH

Make sure these settings are working correctly by running the following command:

source ~/.bash_profile

Check the version

git --version
git version 1.8.1.2

There you have it, git is now installed on your Web Hosting Account.


Помогла ли вам эта статья?
Благодарим вас за отзыв. Чтобы связаться с сотрудником службы поддержки клиентов, позвоните по номеру этой службы или воспользуйтесь опцией чата выше.
Мы рады вам помочь! У вас остались вопросы?
Приносим извинения. Расскажите нам, какие затруднения вы испытываете или почему рекомендованное решение не помогло устранить проблему.