HostMonster 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.
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 67,826 views bookmark tags: dedicated git install server yum (updated 676 days ago)


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. (updated 628 days ago)
Knowledgebase Article 41,974 views tags: dedicated install java server yum

To help with installing an SSL certificate for an account on a dedicated server through the WHM (updated 157 days ago)
Knowledgebase Article 63,401 views tags: assign dedicated server ssl whm

How to manage the SSL used for cPanel login through the WHM (updated 627 days ago)
Knowledgebase Article 65,731 views tags: cpanel dedicated install login manage server ssl

Related Help Content

How to install ClamAV to help with virus protection. (updated 397 days ago)
Knowledgebase Article 22,696 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) (updated 508 days ago)
Knowledgebase Article 41,976 views tags: caching dedicated pecl vps

How to install a Minecraft Server. (updated 550 days ago)
Knowledgebase Article 30,005 views tags: Minecraft dedicated vps

How to install NginX for reverse proxy and web performance enhancing. (updated 390 days ago)
Knowledgebase Article 45,000 views tags: dedicated nginx proxy reverse vps

How to setup name servers for multiple cPanel accounts. (updated 408 days ago)
Knowledgebase Article 74,144 views tags: accounts custom dedicated multi multiple nameservers server servers

How to assign a dedicated IP to a domain on a dedicated server. (updated 496 days ago)
Knowledgebase Article 70,970 views tags: dedicated ip

Installing Ventrilo for voice chat on a HostMonster server. (updated 2027 days ago)
Knowledgebase Article 66,398 views tags: install set setup

Installing TeamSpeak for voice chat on a HostMonster server. (updated 2027 days ago)
Knowledgebase Article 66,589 views tags: install