Introduction
cPanel allows you to create GIT repositories that are hosted locally on the cPanel server.
Procedure
To create a new repository, perform the following steps:
-
Use SSH to log in to your cPanel account on the command line.
-
To navigate to the directory that will contain your repository, run the following command:
cd ~/Project/example
Note:To create a new directory to store your repository, run the following command and then navigate to that directory:
mkdir -p ~/Project/example
-
To initialize the directory as a Git repository, run the following command:
git init
More information can be found on this at the documentation below: