Modern Workflow with Git

With Git Version Control, you can manage your website files, assets, or software projects directly on your cPanel account. Whether you want to clone an existing project from GitHub or create a completely new repository – cPanel offers an intuitive interface for professional project management.

cPanel Git Overview
Important Note: If you have shell access (SSH), you can also use Git directly via the Terminal. For private repositories, this is often necessary to correctly store SSH keys.

Setting up a Repository

Click on "Create" in the top right of the overview. You have two options:

Clone Repository

Copy an existing project from a platform like GitHub or Bitbucket to your server.

Requires the clone URL (HTTPS or SSH).

Create New

Create an empty directory on your server that will serve as a Git repository from now on.

Ideal for starting new projects.

Management and Deployment

In your repository table, you will find three central functions:

  • Manage: Here you can adjust the display name, switch the active branch, or perform a manual deployment.
  • History: Opens the Gitweb view. Here you can browse commits, changes, and the timeline of your project in the browser.
  • Remove: Stops management by cPanel. The data in the directory is preserved but will no longer be listed in cPanel.

Restrictions and Security

To ensure system stability, several rules apply when creating repositories:

Paths Repositories cannot be created in system folders such as /etc, /mail, or /ssl.
Characters Folder names must not contain spaces or special characters like * | " < > &.
Security Access to the .git directory is automatically blocked by cPanel for web visitors.
Warning: Never manually modify or delete content within the .git folder. This can render the entire version history unusable.

Want to take your project live at the touch of a button (Auto-Deployment)?
The CURIAWEB team will be happy to help you set up Git hooks!

Was this answer helpful? 1 Users Found This Useful (1 Votes)