How to Create a New GIT Repository

Learn how to create a new GIT repository of your website with the SG-GIT cPanel tool

This tutorial explains how to create a new GIT repository of your website application by using the SG-GIT tool in cPanel.

Access SG-Git in cPanel

First you should login your cPanel and click on the SG-Git tool icon that can be found in the Site Improvement Tools section.

The SG-GIT interface has two main sections. The first section shows you the active GIT repositories that you have and the second section that we detect applications managed through the Softaculous software.

Create a repository of a detected application

To create a new GIT repository for your website you need to click on the Create Git Repository button next to the entry for that website.

The system will create the repository on the server. Note that the system will need some time to create the GIT repository and you may need to wait up to 5-10 minutes depending on the size of your website.

Important!The system will not allow you to create new GIT repositories if you're using more than 80% of your disk space or your inode quota.

Once the new repository is created you will see a new window with SSH connection details. Note that if you already have an SSH key generated for your account, the tool will not make a new one. You can simply use your existing keys.

Make sure to write down or remember the password for your key. Due to security reasons you won't be able to see it after this pop-up closes. If you forget the password for your key you'll have to create a new key from the SSH / Shell Access tool in your cPanel.

Add an application that was not detected automatically

If your site is not listed in the Websites section, you can add it manually. To do this, first click on the Add New button in the bottom-right part of the page.

A pop-up will appear allowing to you to specify the folder where your application is located. Once you do that, simply press the Submit button.

That's it, your application has been added to the list of sites you can create a repository from.