How do I create a Git repository in cPanel?

Git repositories track changes in a system of files that multiple users can manage simultaneously.

 

This guide will explain how you can create a new Git repository.


 

Step 1

To create a new repository, you will need to use SSH to log in to your cPanel account on the command line. 


 

Step 2

First, you'll need to create a new directory to store your repository. Run the following command:

 

mkdir -p ~/Project/example

 

Step 3

To navigate to the new directory, run the following:

 

cd ~/Project/example

 

Step 4

Finally, you will need to initialise the directory as a Git repository. To do this run the following command:

 

git init

 

Need further information?

For more in-depth assistance on Host Git Repositories, take a look at cPanel's documentation:

 

[Guide to Git™ - Host Git Repositories on a cPanel Account | cPanel & WHM Documentation]

 

Alternatively, please contact the ProStack team via support ticket and we can help get this resolved for you! Get in touch today!


 

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I create a Staging Environment in cPanel?

Creating a development or staging environment allows you to perform tests of a live environment...

How do I install Perl Modules for my site in cPanel?

  Perl Modules are software components in the Perl language. From cPanel, you are able to search...

How do I configure automatic email response messages via Autoresponders in cPanel?

The Auto Responder feature in cPanel allows you to set up automatic email response messages....

How do I create an Addon Domain in cPanel?

This article will explain how you can add an addon domain from a single account.    Step 1...