11 Floor Insular Life Building Makati 11 Floor Insular Life Building Makati
  • Web Hosting

INSTALLING FILES FROM A GIT REPOSITORY

cPanel provides convenient version control options powered by Git. Programmers and developers choose to use a distributed version control system to install and update web sites and deploy them quickly. This article will guide you through the proper usage of Git Version Control in your cPanel Control Panel.


1. Installing your Site using Git Version Control


a. In the “find functions” box type “git”

b. Click on the “Git Version Control” icon.

c. Choose “Create” from the Git Version Control page.

d. By default, the Clone Repository switch is on, meaning your site will be copied and installed by cloning the repository.

e. Type the URL for the repository you’d like to clone in the Input area labeled “Clone URL”. In our case we will clone the popular PHP framework Laravel so we put in: https://github.com/laravel/laravel

f. Type the desired path you would like to use in the “Repository Path” text area, the system will fill in what it thinks you would like.

g. Type a name for your repository in the Repository Name text area, the system will fill in what it thinks you would like.

h. Choose Create when you are finished to save your changes.

i. The files you chose to clone will be added to the directory you specified.

2. Updating your Site using Git Version Control


a. In the find functions box type “git”

b. Click on the “Git Version Control” icon.

c. Select the “Manage” option to the right of the name of the Repository you’d like to update.

d. Choose Pull or Deploy.

e. Choose the option to Update from Remote.

Git Version Control will update your site with any files added, edited, or removed from the repository at this time.