You can configure deployment settings for a Git repository within cPanel to automate the deployment of your code to your web server. This process allows you to define how and when changes from your repository are pushed to your live site.
Important: This feature is only available on Hostek plans that include the Git Version Control extension.
Before you begin
You will need:
An active cPanel account
A local or remote Git repository
Access to the cPanel Git Version Control interface
Configure Deployment Settings
Log in to your cPanel account.
Locate the Files section and select Git™ Version Control.
Select the specific repository you wish to configure.
Click on the Configuration or Deployment tab (the label may vary slightly depending on your cPanel version).
Define your deployment rules, such as the target directory and the specific branch to track.
Select Save or Update to apply the changes.
Confirm the result
The configuration status for the repository should display as "Active" or "Configured."
The system will now recognize the specific branch and directory for your next deployment.
Limitations
This feature only manages the deployment logic within the cPanel environment; it does not automatically manage your local Git environment or remote repository hosting (such as GitHub or GitLab). If your deployment does not trigger, ensure your local push includes the correct branch name as defined in your cPanel configuration.
