You can create a new Git repository directly within cPanel to manage your website's source code. This feature is available to Account Users on plans that include the Git Version Control extension.
Important: This feature is only available on specific Hostek plans that include the Git Version Control extension.
Before you begin
You will need:
An active cPanel account
A plan that includes the Git Version Control feature
A local copy of your project or a remote repository URL (if cloning)
Create a Git Repository
Log in to your cPanel account.
Locate the Software section and select Git™ Version Control.
Click Create.
Enter the following information:
Repository Name: Enter a name for your repository (e.g.,
my-project).Repository Path: Enter the directory path where the repository will be located (e.g.,
public_html/my-project).
Click Create.
Confirm the result
cPanel will display a success message confirming the repository was created.
You will be redirected to the Git management page for the newly created repository.
The repository will appear in the list of available Git repositories in your cPanel account.
Limitations
This feature allows you to manage the Git repository within cPanel, but it does not automatically deploy your code to a live web directory unless you configure a deployment script or a .cpm file. This article does not cover the configuration of deployment scripts.
