Bluehost Web Hosting Help

VPS or Dedicated Hosting - Installing Git

Git is a great open-source application to help you track the versions of files and projects that you work on.

You will need to make sure that you have Sudo Access enabled. If you have not enabled sudo access please see Enabling Sudo Access to learn how to do so.

Here is how you install Git,

  1. Open an SSH client and login.
  2. Then type: sudo yum install git
  3. Note: If you are logging in as root you do not need to type sudo.
    This will install the Git functions for you.

Note: If you encounter an error regarding perl, try using:
yum install git --disableexcludes=main --skip-broken

To setup a repository on the server you will want to,
  1. Make a directory for the repository. mkdir example.git
  2. Note: The use of .git is for the conformity with the other .git folders that are created in the repository. You can name the folder whatever you would like.
  3. Change to the new directory. cd example.git
  4. Then type: git --bare init
  5. Note: The reason for using the --bare is to mark it as the primary repository for this git project. init stands for initialize.
That will have setup the repository for you to push to.
To learn more on how to use Git, please go to Git - Documentation.
Knowledgebase Article 103,453 views bookmark tags: dedicated git install server yum


Was this resource helpful?

Did this resolve your issue?


Please add any other comments or suggestions about this content:





Recommended Help Content

VPS or Dedicated Hosting - Installing Java

How to install Java in a dedicated server.

VPS Dedicated Installing SSL

To help with installing an SSL certificate for an account on a dedicated server through the WHM

VPS or Dedicated Hosting - Manage Login SSL Certificates

How to manage the SSL used for cPanel login through the WHM

Related Help Content

VPS or Dedicated Hosting - Install ClamAV

How to install ClamAV to help with virus protection.

VPS or Dedicated Hosting - Installing PHP APC

This tutorial will help you be able to install the PHP PECL package APC. (Alternative PHP Cache)

VPS or Dedicated Hosting - Install a Minecraft Server

How to install a Minecraft Server.

VPS or Dedicated Hosting - Installing NginX

How to install NginX for reverse proxy and web performance enhancing.

VPS or Dedicated Hosting - Using Multiple cPanel Accounts To Set Custom Nameservers

How to setup name servers for multiple cPanel accounts.

VPS or Dedicated Hosting - Assigning Dedicated IPs

How to assign a dedicated IP to a domain on a dedicated server.

VPS or Dedicated - Installing and using RoR with Passenger

This article will explain how to use RoR through passenger on a VPS or Dedicated hosting account

VPS or Dedicated Hosting - Modify Exim Port (Mail Transfer Agent)

How to modify the Exim Port (Mail Transfer Agent) in the WHM