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,
- Open an SSH client and login.
- Then type:
sudo yum install git
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
- Make a directory for the repository.
mkdir example.git
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.
- Change to the new directory.
cd example.git
- Then type:
git --bare init
Note: The reason for using the
--bare
is to mark it as the primary repository for this git project. init
stands for initialize.
To learn more on how to use Git, please go to Git - Documentation.




Recommended Help Content


Related Help Content



