Home / Help Center / Websites & WordPress
Deploy your site with Git
Clone a repository from GitHub or GitLab and deploy updates.
- Git clone URLs over SSH need shell access. If you'll clone a private repository, open a support ticket to have SSH enabled first.
- In cPanel, open Files → Git Version Control and click Create.

- Turn on Clone a Repository, paste the clone URL, choose the repository path (for example
/home/USERNAME/repositories/mysite) and click Create. - To publish to your website, add a
.cpanel.ymlfile to your repo that copies files intopublic_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.