Installing Git


Browse by products and services

  • Applies to: Grid
    • Difficulty: Easy
    • Time Needed: 0
    • Tools Required: SSH
  • Applies to: DV
    • Difficulty: Medium
    • Time Needed: 20
    • Tools Required: SSH, root

Overview

Good news! Git is already installed on the Grid. Please click here for basic usage instructions.

Overview

This article shows you how to install Git on your Media Temple VPS. Git is a popular open source version control system that many web developers use. For help using Git, please see this article

https://mediatemple.net/community/products/dv/204404614/using-git

CloudTech_ProductPage_217x57

CloudTech Can Help!

If you're having trouble with the steps in this article, additional assistance is available via CloudTech, our premium services division. Our expert engineers can install Git on your server in no time. For more information on what CloudTech can do for you, please click here.

Instructions

Instructions for SSH and Plesk are included in this article. cPanel does not have an extension or utility for Git, but it is installed on cPanel servers by default and may be used. 

Via SSH

Git is included in the repositories for most major Linux package managers, including yum and apt. By connecting to your Media Temple server via SSH, you can easily install Git.

Plesk users: It is recommended that you install and manage Git using the extension included with Plesk version 17 and above. If you choose to install manually via SSH, it is safest to update your server using the update utility in the Plesk panel, rather than using yum. Using yum to update a Plesk install may cause problems with your Plesk installation.

CentOS / RedHat Linux distributions:

1. Make sure that your server is up-to-date. 

sudo yum update

2. Install Git using the yum package manager. 

sudo yum install git

3. Verify the install

git --version

Ubuntu/Debian:

1. Make sure that your server is up-to-date. 

sudo apt-get update

2. Install Git using the apt package manager. 

sudo apt-get install git

3. Verify the install

git --version

Note: Should you need them, instructions for installing Git from source may be found here

Plesk

The Plesk Git extension makes it very easy to configure and manage Git. It includes integration with GitHub and Bitbucket.  

These instructions are for installing the Git extension included in Plesk 17.08.16 (Plesk Onyx) and above. If you are using an older version Plesk, consider upgrading so that you can take advantage of many additional features.

1. Begin by logging into your Plesk panel and clicking on Extensions.

plesk_git_extension_1.png

2. Click on Extension Catalogue at the top. Scroll down until you see the Git extension and click on Install.

plesk_git_extension_2.png

3. After the installation process completes, click on Websites & Domains. You should now have a Git icon available beneath your sites. Click on it to configure your repositories. 

plesk_git_extension_3.png

cPanel 

Good news! Git is already installed on cPanel. Please click here for basic usage instructions.

Additional Resources