(dv) 3.5:Install Git

  • This page was last modified on May 10, 2012, at 10:35.
The (mt) Community Wiki is a collaborative project. Any (mt) Media Temple customer or employee may contribute. Not all articles and/or content have been tested for accuracy by (mt) Media Temple.

For officially moderated and tested articles, be sure to visit our KnowledgeBase.

From (mt) Community Wiki

End of Life Warning

This service has a pending End of Life. Please move to a current service as soon as possible. For more information, please see: (dv) Dedicated-Virtual 4.0: Migration Information.


Git is an open source version control system designed to handle very large projects with speed and efficiency, but just as well suited for small personal repositories. It is especially popular in the the open-source community, serving as a development platform for large projects, such as the Linux Kernel, WINE or X.org.

There is a great Google TechTalk video of Git available on Youtube for your enjoyment.


This article has the following dependencies:

  • If you currently do not have your root user enabled or our Developer Tools installed please visit the Root Access & Developer Tools section of your AccountCenter.
  • Whenever installing Third-Party software please consult the official documentation. (mt) Media Temple does not support the installation and configuration of software not installed at time of service activation. Please consult our (dv) Scope of Support page for further explanation.
  • example.com is used as an example. Please be sure to replace this text with the proper information for your site or server.
  1. Log into your (dv) 3.5 Dedicated-Virtual Server as root using via ssh:
    ssh root@example.com
  2. Once logged in you will need to install python-iniparse, an INI parser for the Python language:
    rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
  3. Install YUM, the package management system for the CentOS 5 operating system.
  4. Next install the EPEL rpm:
    rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
    
    An alterntative download location is
    rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
  5. Now it's time to actually install Git using yum:
    During this part of the installation you will be prompted with several Is this ok [y/N]: prompts. Just enter a y and press return and the installation will continue.
    yum install git
    

Congratulations. You now have Git installed on your (dv) server. Please consult the official website for Git at http://git.or.cz/ for further information.