cPanel’s Git Version Control interface can create an empty repository for tracking files. Creating the repository does not automatically publish a website or deploy its contents.

Create the repository

  1. Open Files > Git Version Control in cPanel.
  2. Click Create.
  3. Disable Clone a Repository to create a new repository rather than copy a remote one.
  4. Enter the intended Repository Path within your account.
  5. Enter a descriptive Repository Name for the cPanel list.
  6. Click Create and check the result.

Use a private path outside the public document root unless you have a reviewed deployment arrangement. Do not use a directory containing unrelated files or another repository unintentionally.

Add files and configure deployment separately

Use supported Git access to add files and commits. Shell availability depends on your hosting plan.

For a remote repository, use the clone workflow instead and configure appropriate authentication. Never place passwords or tokens in a clone URL or commit secrets into the repository.

If the repository is for a website, configure and test cPanel’s supported deployment process separately. Check that repository metadata and private files cannot be downloaded by visitors.