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
- Access the server's command line as the cPanel user via SSH or "Terminal" in cPanel.
- Create the repository folder if it doesn't exist.
-
mkdir -p ~/Project/example
- Change to the directory that will contain your repository.
-
cd ~/Project/example
- Initialize the directory as a Git repository.
-
git init
Additional resources
Guide to Git™ - Host Git Repositories on a cPanel Account
Comments
0 comments
Article is closed for comments.