Tip: Start typing in the input box for immediate search results.

< Back

Clone a Git Repository – cPanel

Learn how to Clone a Remote Git Repository using cPanel. The Git™ Version Control feature allows you to host Git repositories on your cPanel account. You can use Git to maintain any set of files (for example, a website’s files and assets, a software development project, or simple text files). More information.

One of the most important aspects of managing a project in Git is being able to sync the remote repository with your local work. 

Make sure that your cPanel account includes shell access. Without shell access, you can only create, clone, delete and view repositories.
If you are using your local machine SSH, make sure that you have created an SSH public_key and have added it to your cPanel server.

Video tutorial – Clone a Remote Git Repository – cPanel

Step-by-step tutorial – Clone a Remote Git Repository

  1. Log in to cPanel.

    Tutorial: login from the Client Area or the direct link.

    Find the Files section and click the GitTM Version Control.

    Extilum cPanel - Delete a Git Repository

  2. Git Version Control

    Click the Create button.

    Extilum cPanel - Clone a Remote Git Repository

  3. GitHub repository web page.

    Copy URL for the repository that you wish to clone.
    The example below is on the GitHub repository.

    Extilum cPanel - Clone a Remote Git Repository

  4. Create Repository

    To clone an existing repository, ensure that the Clone a Repository toggle is enabled.
    Then, enter the clone URL for the repository that you wish to clone in the Clone URL text box.
    Important: To clone private repositories, you must perform additional steps.
    Do note that:
    – this URL cannot contain a username-and-password pair.
    – this URL must include the http://, https://, ssh://, or git:// protocols or use the user@example.com/path format, where user represents the username, example.com represents the domain, and path represents the repository path.
    – you cannot enter a local repository path.
    – the system performs additional checks including SSH host key verification for clone URLs that use the ssh:// protocol.

    In the Repository Path text box, enter the path to the directory that will contain the repository or leave it as it is.
    In the Repository Name text box, enter the desired display name for the repository or leave it as it is.
    Click the Create button.

    Click the Return to Repository list.

    Extilum cPanel - Clone a Remote Git Repository

Was this article helpful?
0 out of 5 stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.