Deploying with Git in cPanel
Clone a repository and deploy updates from it.
- In cPanel, open Git Version Control and click Create.
- Turn on Clone a Repository and paste the repository's clone URL (for a private repository, add your server's SSH key as a deploy key first, from SSH Access).
- Choose the folder to clone into, and click Create.
- To deploy, add a
.cpanel.ymlfile in the repository describing which files to copy topublic_html, then use Manage → Pull or Deploy.