This site utilizes JavaScript to function correctly. Looks like it's disabled on your browser. Please enable it for your best experience.

For instructions on enabling JavaScript, click here

Skip to main content

Just Host 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 200,460 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

How to install Java in a dedicated server.
Knowledgebase Article 176,545 views tags: dedicated install java server yum

If you need to transfer or restore a cPanel account for your VPS or Dedicated server, there is a tool within the WHM panel to perform these tasks. This article is about transferring or restoring from another server or restoring after a re-image.
Knowledgebase Article 88,970 views tags: backup cpanel dedicated hosting restore server transfer vps

To help with installing an SSL certificate for an account on a dedicated server through the WHM
Knowledgebase Article 260,676 views tags: assign dedicated server ssl whm

Related Help Content

How to manage the SSL used for cPanel login through the WHM
Knowledgebase Article 221,914 views tags: cpanel dedicated install login manage server ssl

VPS and Dedicated servers come with all applications necessary to run a standard web and email server. The applications that come with the VPS and Dedicated servers are generally supported as-is by our support technicians.

This article will explain how-to enable FTP on a newly provisioned VPS or Dedicated cPanel server. Since FTP is an unsecured connection point to the server, cPanel has it disabled by default in version 11.86 or prior.
Knowledgebase Article 46,526 views tags: dedicated file ftp root server transfer vps

How to install ClamAV to help with virus protection.
Knowledgebase Article 170,852 views tags: antivirus clamav cpanel dedicated plugin server whm

This tutorial will help you be able to install the PHP PECL package APC. (Alternative PHP Cache)
Knowledgebase Article 172,562 views tags: caching dedicated pecl vps

VPS and Dedicated customers with servers running the CentOS 6 operating system will not be able to upgrade cPanel past version 86. The cPanel team will still support CentOS 6 with cPanel 86 until March 31st, 2021.
Knowledgebase Article 115,987 views tags: centos cpanel dedicated hosting private server upgrade virtual vps

How to install a Minecraft Server.
Knowledgebase Article 164,547 views tags: Minecraft dedicated vps

How to install NginX for reverse proxy and web performance enhancing.
Knowledgebase Article 153,578 views tags: dedicated nginx proxy reverse vps

** Google ad credits are only available to customers in the United States, Canada, and the United Kingdom at this time.

¹ VAT (Value Added Tax) is not included in our advertised price and will be charged separately and itemized on invoices and billing information. Standard VAT rates based on EU Member State regulations may apply. Learn more.