HOW TO: Use Git Version Control in cPanel to Install & Update a Site
Posted by Uvaraj N. on 07 June 2021 10:12 PM
|
|
How to use Git version control in cPanel to install and update a siteGit is a distributed version control system used by many programmers. The cPanel tool provides a convenient graphical interface that allows access to Git features without using the command line. It can be used to install and update a web site stored in a Git repository This article shows how to perform an installation with a simple 'Hello World!' example. The same steps can be used to install an application of any size. In this example, a developer has created a web page and placed it in a repository on Github. Installing the siteTo install a site from a Git repository, follow these steps:
In the document root directory there is now the index file containing the 'Hello World!' message and a .git directory that contains files used by Git. Updating the siteThe site developer has created an 'About' page to supplement the 'Hello World' message and has added it to Github. Follow these steps to update the site:
The new 'About' page is copied into the document root directory. | |
|