Need to have your .LK Domain within 15 mins? - Click Here

How to Connect GitHub with cPanel (Public Repository - Without SSH)

If you want to deploy a website from GitHub to cPanel without using SSH, you can use cPanel's built-in Git Version Control feature. This guide will show you step by step how to connect a public GitHub repository to cPanel.

Step 1: Create a GitHub Repository

  1. Go to GitHub and log in.

  2. Click on New Repository.

  3. Enter a Repository Name (e.g., "mywebsite").

  4. Choose Public.

  5. Click Create Repository.

  6. Copy the repository URL (it looks like https://github.com/yourusername/mywebsite.git).

 

Step 2: Open cPanel Git Version Control

  1. Log in to your cPanel account.

  2. Scroll down to the Files section and click on Git Version Control.

cPanel Git Control


Step 3: Create a New Repository

  1. Click the Create button.

  2. Under Repository Path, choose a folder where you want to store the project (e.g., /public_html/mywebsite).

  3. Under Repository Clone URL, enter your GitHub repository URL (Make sure it is public and starts with https://github.com/username/repository.git).

  4. Click Create.

Create repo


 

Create the repo


Step 4: Pull Files from GitHub

  1. After creating the repository, go to the Git Version Control page.

  2. Find your repository and click Manage.

  3. Click the Pull or Deploy button to fetch the latest changes.

 

Step 5: Verify Your Files

  1. Open the File Manager in cPanel.

  2. Navigate to the folder where you cloned the repository (/public_html/subdomain).

  3. You should see all your project files here

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

What are private nameservers and how do I set them up?

Private nameservers are where your domain points to our nameservers so that your customers do not...

Common SSH Commands - Linux Shell Commands

Navigating in UNIX pwd Shows the full path of the current directory ls Lists all...

Creating a Welcome message for SSH logins

Did you ever want to change or create a new login message antime someone logs into SSH? We'll...

Protecting Yourself Against Viruses & Data Loss

It is vital to ensure your computer is protected from viruses and trojans. As well as installing...

Phishing - Protect your Identity and Finances

Stay Safe from Phishing Attacks: Protect Your Identity and Finances Phishing Attacks Explained...