Introduction

cPanel allows you to create GIT repositories that are hosted locally on the cPanel server. This article provides the steps to create the repository.

 

Procedure

  1. Access the server's command line as the cPanel user via SSH or "Terminal" in cPanel.
  2. Create the repository folder if it doesn't exist.
  3. mkdir -p ~/Project/example
  4. Change to the directory that will contain your repository.
  5. cd ~/Project/example
  6. Initialize the directory as a Git repository.
  7. git init

 

Additional resources

Guide to Git™ - Host Git Repositories on a cPanel Account

Guide to Git™ - Common Git Commands

Guide to Git™ - Deployment

Guide to Git™ - How to Set Up Deployment Cron Jobs