How to Use Git Version Control in Cpanel to Install a Site

How to Use Git Version Control in Cpanel to Install a Site

[tool]cPanel[/tool] enables website owners and programmers to utilize the features of Git using its Git Version Control tool. The tool provides an intuitive graphical interface to access Git features without having to use the command line. In this tutorial, you will see how you can install a site using Git version control in cPanel in an easy and quick method. Follow these steps and unlock seamless installation directly from a Github repository.

Step 1: [step]

[stepName]Log into your cPanel account[/stepName]
by entering the username and password for your account. You will be directed to the cPanel home page.[/step]

Step 2: [step]

[stepName]Go to the Files section of the cPanel homepage.[/stepName]
You will see the Git Version Control icon. Proceed by clicking on it.

[stepImage]

screenshot of Files panel in cPanel

[/stepImage][/step]

Step 3: [step]The Git Version Control page will appear.

[stepName]Click on the Create option.[/stepName]

[stepImage]

screenshot of Git Version Control panel in cPanel

[/stepImage][/step]

Step 4: [step]

[stepName]Ensure that the Clone a Repository slider is enabled on the Create Repository page.[/stepName]
[/step]

Step 5: [step]Now, you’ll have to enter the repository URL that you want to clone which contains the site to be installed.

[stepName]In the Clone URL box, enter the URL of the repository. We’re taking a repository from GitHub in this example.[/step]

Step 6: [step][stepName]Enter the path to the document root of the site in the Repository Path text box.[/stepName]

Note
Note: Although the document root directory is generally public_html, you can install the site in a subdirectory beneath public_html. However, if you do this, you need to ensure that you set the correct permissions for the directory. Otherwise, it won’t be visible.

[stepImage]

screenshot of Git Version Control in cPanel

[/stepImage[/step]

Step 7: [step]

[stepName]Now, enter the name of your repository in the Repository Name text box.[/stepName]
[/step]

Step 8: [step]

[stepName]Finally, hit the Create button.[/stepName]

[stepImage]screenshot of Create button[/stepImage]

[/step]

After step 8, you will find that the document root directory contains the index.html file and a .git directory that contains files used by Git.

Note
Note: The .git directory will not be visible to site visitors by default.

And there we go! Following these eight simple steps, you will have installed a site using Git version control in cPanel.

How To Examine And Repair A Database in PhpMyAdmin

Over the period of time, database can be corrupted and needs to repaired. This t
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Find and Install A New Theme in Drupal 8

This tutorial will help you replace the default Drupal theme with your preferred
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Create Views in Drupal 8

This tutorial is compiled to help you create a view in your Drupal 8 platform.
less than a minute
Elizabeth Grom
Elizabeth Grom
Hosting Expert

How To Set up a VSFTPD Server on a CentOS 7 VPS or Dedicated Server

Brief Description FTP is usually insecure exposing clear-text passwords, usernam
less than a minute
Eliran Ouzan
Eliran Ouzan
Web Designer & Hosting Expert
Click to go to the top of the page
Go To Top
HostAdvice.com provides professional web hosting reviews fully independent of any other entity. Our reviews are unbiased, honest, and apply the same evaluation standards to all those reviewed. While monetary compensation is received from a few of the companies listed on this site, compensation of services and products have no influence on the direction or conclusions of our reviews. Nor does the compensation influence our rankings for certain host companies. This compensation covers account purchasing costs, testing costs and royalties paid to reviewers.