Celebrating our 30th year online · Est. 1997 Our story → Open a ticket Status

Home / Help Center / Websites & WordPress

Deploy your site with Git

Clone a repository from GitHub or GitLab and deploy updates.

  1. Git clone URLs over SSH need shell access. If you'll clone a private repository, open a support ticket to have SSH enabled first.
  2. In cPanel, open Files → Git Version Control and click Create.
    Deploy your site with Git, step 2
  3. Turn on Clone a Repository, paste the clone URL, choose the repository path (for example /home/USERNAME/repositories/mysite) and click Create.
  4. To publish to your website, add a .cpanel.yml file to your repo that copies files into public_html, then use Manage → Pull or Deploy.

Tips

  • Keep secrets (API keys, passwords) out of your repository. Store them in a config file outside public_html.

Still stuck?

Our in-house team answers tickets 24/7.

Open a ticket

Related guides