cPanel includes built-in support for Git Version Control, making it easy to create or clone Git repositories directly from your hosting control panel. This is ideal for managing website development, deploying code, or tracking changes efficiently.
Follow these steps to set up a new (empty) Git repository:
Log in to your cPanel account.
Scroll to the Files section.
Click Git Version Control.
Click Create.
(If this is your first time creating a repository, you will be taken directly to the setup form.)
Toggle OFF the "Clone a Repository" option — this indicates you want to create a new, blank repository.
In the Repository Path field, enter the full file path where the repository should be created.
Example: home/youruser/public_html/myrepo
Enter a Repository Name — this is how it will be displayed in cPanel.
Click Create to finish.
To clone a Git repository from a remote source (like GitHub or Bitbucket):
Go to Git Version Control in the Files section of cPanel.
Click Create.
Leave the "Clone a Repository" toggle enabled (default setting).
In the Clone URL field, paste the repository's HTTPS or SSH URL.
Example: https://github.com/username/project.git
Provide the Repository Path — this is where the cloned files will reside.
Note: A new directory will be created automatically.
Enter a Repository Name for display purposes in cPanel.
Click Create.
Once cloned, you can manage your Git repository via the Git Version Control interface within cPanel — including pulling updates, viewing logs, and checking branch status.
Make sure the specified directory path does not already exist when cloning.
Use SSH key authentication for private repositories.
You can manage deployment via Deployment via Git in cPanel if needed.