{"id":782,"date":"2026-11-20T12:37:50","date_gmt":"2026-11-20T12:37:50","guid":{"rendered":"https:\/\/hostelevate.com\/blog\/?p=782"},"modified":"2026-11-20T14:26:25","modified_gmt":"2026-11-20T14:26:25","slug":"cpanel-git-deployment","status":"publish","type":"post","link":"https:\/\/hostelevate.com\/blog\/cpanel-git-deployment\/","title":{"rendered":"Deploy a Site With Git in cPanel"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>You can deploy a site with Git in cPanel by cloning your repository in Git Version Control, adding a .cpanel.yml file and clicking Deploy HEAD Commit.<\/strong> cPanel then copies the files you list to your site folder, usually public_html. You do not need SSH to start, only a repository and a clean working tree.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This guide is for developers, designers and site owners who keep their website code in Git and want a repeatable way to publish it. It covers cPanel Git deployment from first setup to updates, and it explains the errors most people hit, so you can publish with confidence.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key takeaways <\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Open cPanel \u00bb Files \u00bb Git Version Control to start cPanel Git deployment by creating or cloning a repository.<\/li>\n\n\n\n<li>A .cpanel.yml file in the top level of the repository tells cPanel what to copy.<\/li>\n\n\n\n<li>Deployment needs a clean working tree, so commit your changes first.<\/li>\n\n\n\n<li>Use Update from Remote, then Deploy HEAD Commit, to publish new changes.<\/li>\n\n\n\n<li>If Git Version Control is missing, your host has not enabled it.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><a>Before You Start<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Before you use cPanel Git deployment, check that you have the access and files you need. Your host controls this feature in WHM\u2019s Feature Manager, so it may not show if it is switched off.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">You will need:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"294\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115-1024x294.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-788\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115-1024x294.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115-300x86.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115-766x220.png 766w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115-1536x441.png 1536w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-115.png 1608w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>A cPanel account with Git Version Control enabled.<\/li>\n\n\n\n<li>A Git repository, for example on GitHub, GitLab or Bitbucket, with at least one branch.<\/li>\n\n\n\n<li>The repository\u2019s clone URL, without a username or password in it.<\/li>\n\n\n\n<li>The path to your site folder, such as public_html for your main domain.<\/li>\n\n\n\n<li>A backup of your current site, in case you want to roll back.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Clone URLs must use http:\/\/, https:\/\/, ssh:\/\/, git:\/\/ or the user@example.com\/path format, and local paths are not allowed. Private repositories need extra SSH setup, and that part uses the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Based on:<\/strong> the current cPanel &amp; WHM documentation for Git Version Control and Git deployment. Menu names can differ slightly by cPanel theme and version.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Does cPanel Git Deployment Work?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel Git deployment works in two steps: cPanel keeps a copy of your repository, and a .cpanel.yml file tells it which files to copy to your live site. The repository copy and the live site are separate folders.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There are two ways to deploy:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Pull deployment.<\/strong> You click Update from Remote and then Deploy HEAD Commit in cPanel when you want to publish.<\/li>\n\n\n\n<li><strong>Push deployment.<\/strong> Once the cPanel-managed repository contains .cpanel.yml, changes you push to it deploy automatically.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Pull deployment is the simplest place to start, and the rest of this guide uses it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">How cPanel Git deployment works: remote repository, cPanel clone, .cpanel.yml file and live site<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Open Git Version Control in cPanel?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To start cPanel Git deployment, open Git Version Control from the Files section of the cPanel home screen. Follow these steps:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"360\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-119-1024x360.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-792\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-119-1024x360.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-119-300x105.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-119-768x270.png 768w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-119.png 1186w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to cPanel.<\/li>\n\n\n\n<li>Go to <strong>Home \u00bb Files \u00bb Git Version Control<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Create<\/strong> in the top-right corner.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">If you cannot find the icon, search for \u201cGit\u201d at the top of cPanel. If it does not appear, ask your host to enable it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Clone Your Repository in cPanel?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The first step in cPanel Git deployment is to clone your repository from the Create screen, by turning on Clone a Repository and entering your clone URL. This copies your code into a folder in your account.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"379\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118-1024x379.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-791\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118-1024x379.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118-300x111.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118-767x284.png 767w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118-1536x568.png 1536w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-118.png 1586w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Turn on the <strong>Clone a Repository<\/strong> toggle.<\/li>\n\n\n\n<li>In <strong>Clone URL<\/strong>, paste the repository URL.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"370\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117-1024x370.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-790\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117-1024x370.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117-300x108.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117-767x277.png 767w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117-1536x555.png 1536w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-117.png 1587w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>In <strong>Repository Path<\/strong>, enter a new, empty folder, for example repositories\/mysite.<\/li>\n\n\n\n<li>In <strong>Repository Name<\/strong>, enter a display name.<\/li>\n\n\n\n<li>Click <strong>Create<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Cloning can take a while for a large repository. The path cannot contain spaces or certain special characters, and you cannot use cPanel-controlled folders such as .ssh, mail or cgi-bin. Keep the repository outside public_html, so your source files are not exposed on the web.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After it finishes, click <strong>Manage<\/strong> to check the repository. The <strong>Basic Information<\/strong> tab shows the checked-out branch and the latest commit.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Four steps to clone and deploy a repository in cPanel Git Version Control<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Create the .cpanel.yml File?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">In cPanel Git deployment, you create it in the top level of your repository and commit it, so that cPanel knows which files to copy. cPanel recommends adding it to your remote repository and not editing the cPanel-managed copy.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Create a file named .cpanel.yml with this content:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>&#8212;<br>deployment:<br>\u00a0 tasks:<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>- export DEPLOYPATH=\/home\/user\/public_html\/\n\u00a0\u00a0\u00a0 - \/bin\/cp index.html $DEPLOYPATH\n\u00a0\u00a0\u00a0 - \/bin\/cp style.css $DEPLOYPATH<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace \/home\/user\/public_html\/ with the full path to your site folder. For an add-on domain or subdomain, use that domain\u2019s folder instead. Each line under tasks is a shell command, so add one cp line for each file you want to publish.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"144\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-121-1024x144.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-794\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-121-1024x144.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-121-300x42.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-121-767x108.png 767w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-121.png 1151w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If your site is built into a folder such as dist, copy that folder\u2019s contents instead: \/bin\/cp -R dist\/. $DEPLOYPATH. Copying only adds and replaces files. It does not delete files you removed from the repository.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Then commit and push the file from your computer:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git add .cpanel.yml<br>git commit -m &#8220;Add cPanel deployment file&#8221;<br>git push origin main<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use your own branch name if it is not main.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Deploy Your Site?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You deploy from the Pull or Deploy tab of the repository. This is the core of cPanel Git deployment.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to <strong>Home \u00bb Files \u00bb Git Version Control<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Manage<\/strong> next to your repository.<\/li>\n\n\n\n<li>Open the <strong>Pull or Deploy<\/strong> tab.<\/li>\n\n\n\n<li>Click <strong>Update from Remote<\/strong> to pull your latest commits.<\/li>\n\n\n\n<li>Click <strong>Deploy HEAD Commit<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">The <strong>Last Deployment Information<\/strong> section then shows the date, commit ID, author and message of the deployment. Open your site and confirm the changes are live. Update from Remote uses a fast-forward pull, so it works only when the branch is up to date or can be fast-forwarded.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Deploy Updates Later?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">With cPanel Git deployment, for each new version, push your commits to the remote repository, then repeat the pull steps in cPanel. You do not need to create the repository or the .cpanel.yml file again.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The routine is short:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Commit and push your changes from your computer.<\/li>\n\n\n\n<li>In cPanel, open <strong>Manage \u00bb Pull or Deploy<\/strong>.<\/li>\n\n\n\n<li>Click <strong>Update from Remote<\/strong>, then <strong>Deploy HEAD Commit<\/strong>.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Do not edit files directly in the cPanel-managed repository. Uncommitted changes there stop deployment. Keep your edits in your own copy and let cPanel pull them.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>How Do You Fix Common cPanel Git Deployment Errors?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">You fix most errors by matching the message to its cause. Use this table as a starting point.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><td>Problem<\/td><td>Likely cause<\/td><td>Fix<\/td><\/tr><\/thead><tbody><tr><td>Git Version Control is missing<\/td><td>Your host has not enabled the feature<\/td><td>Ask support to enable it<\/td><\/tr><tr><td>Clone fails with a URL error<\/td><td>The URL has a username and password, or is a local path<\/td><td>Use a valid https:\/\/ or ssh:\/\/ URL without credentials<\/td><\/tr><tr><td>Repository path is rejected<\/td><td>The folder is not empty, or the path has spaces or special characters<\/td><td>Use a new, empty folder with a simple name<\/td><\/tr><tr><td>Private repository will not clone<\/td><td>SSH access is not set up<\/td><td>Add your SSH key and register the host, then try again<\/td><\/tr><tr><td>Update from Remote fails<\/td><td>The branch cannot be fast-forwarded<\/td><td>Resolve the difference in your own repository, push, then update again<\/td><\/tr><tr><td>Deploy HEAD Commit fails<\/td><td>.cpanel.yml is missing, or the working tree has uncommitted changes<\/td><td>Commit .cpanel.yml to the remote and keep the working tree clean<\/td><\/tr><tr><td>Deployment runs but the site does not change<\/td><td>DEPLOYPATH points to the wrong folder<\/td><td>Set it to your site\u2019s document root, such as public_html<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Common cPanel Git deployment errors with their likely causes and fixes<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Match the message to its cause, then apply the fix.<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the host key of your Git provider changes, cPanel shows a warning. Verify the change before you continue, because it could be a security problem.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>What Should You Know About cPanel Git Deployment Limits and Security?<\/a><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">cPanel Git deployment has no shell access in the interface, and it only lets you create, clone, delete and view repositories. Advanced tasks, such as SSH key setup, use the command line.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Keep these points in mind:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Do not modify the .git directory. cPanel blocks public access to it.<\/li>\n\n\n\n<li>Clicking <strong>Remove<\/strong> stops cPanel from managing a repository but does not delete its files.<\/li>\n\n\n\n<li>Keep secrets such as passwords and API keys out of the repository.<\/li>\n\n\n\n<li>Take a backup before your first deployment.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">HostElevate hosting plans include cPanel, and you can ask the team for help on the <a href=\"https:\/\/hostelevate.com\/contact\/\">contact page<\/a>. If you plan to host WordPress, see our guide to <a href=\"https:\/\/hostelevate.com\/blog\/install-wordpress-on-cpanel\/\">installing WordPress on cPanel<\/a>. After you deploy, make sure your domain points to the right server with our guide to <a href=\"https:\/\/hostelevate.com\/blog\/point-a-domain-to-hosting\/\">pointing a domain to hosting<\/a>. If you are moving an existing site, HostElevate offers free website migration, described on the <a href=\"https:\/\/hostelevate.com\/migration\/\">website migration page<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"449\" src=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122-1024x449.png\" alt=\"Deploy a Site With Git in cPanel screenshot\" class=\"wp-image-797\" srcset=\"https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122-1024x449.png 1024w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122-300x132.png 300w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122-766x336.png 766w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122-1536x673.png 1536w, https:\/\/hostelevate.com\/blog\/wp-content\/uploads\/2026\/11\/image-122.png 1868w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">The cPanel documentation covers each screen in detail in its <a href=\"https:\/\/docs.cpanel.net\/cpanel\/files\/git-version-control\" target=\"_blank\" rel=\"noopener\">Git Version Control guide<\/a> and its guide to Git deployment.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a>Frequently Asked Questions<\/a><\/h2>\n\n\n<div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-question-1795177925450\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><a>Where is Git Version Control in cPanel?<\/a><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Go to Home \u00bb Files \u00bb Git Version Control in cPanel. If you do not see it, your host may have disabled it in WHM\u2019s Feature Manager, so ask support to enable it.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1795177948720\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><a>Do I need SSH to deploy a site with Git in cPanel?<\/a><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Not for a public repository. You can clone with an HTTPS URL and deploy from the cPanel screens. Private repositories usually need SSH keys, which you set up on the command line.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1795177990181\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><a>Why does Deploy HEAD Commit fail in cPanel?<\/a><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>The usual causes are a missing .cpanel.yml file or uncommitted changes in the cPanel copy of the repository. Commit the file to your remote, update from remote and try again.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1795178017961\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><a>Does cPanel deploy automatically when I push?<\/a><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. With cPanel Git deployment, once the cPanel-managed repository contains .cpanel.yml, changes you push to that repository deploy automatically. With a remote such as GitHub, you pull and deploy in cPanel manually.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-question-1795178057724\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \"><a>Can I deploy a WordPress theme with Git in cPanel?<\/a><\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Yes. Keep the theme folder in a repository and copy it to wp-content\/themes in your .cpanel.yml. Back up your site first, and never commit passwords or configuration secrets.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\"><a>Summary<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To use cPanel Git deployment, open Files \u00bb Git Version Control, clone your repository, commit a .cpanel.yml file, then click Update from Remote and Deploy HEAD Commit. Keep the working tree clean, check your DEPLOYPATH and test the site after each deployment.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Make a backup before your first cPanel Git deployment and keep secrets out of your repository. When you are ready to publish, see HostElevate <a href=\"https:\/\/hostelevate.com\/cpanel-hosting\/\">cPanel hosting<\/a>, or browse more guides on the <a href=\"https:\/\/hostelevate.com\/\">HostElevate homepage<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can deploy a site with Git in cPanel by cloning your repository in Git Version Control, adding a .cpanel.yml file and clicking Deploy HEAD Commit. cPanel then copies the files you&hellip;<\/p>\n","protected":false},"author":1,"featured_media":801,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"categories":[240],"tags":[192,265,267,268,266,269],"class_list":["post-782","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel-hosting","tag-cpanel","tag-cpanel-git-deployment","tag-cpanel-yml","tag-deploy-website","tag-git-version-control","tag-github"],"_links":{"self":[{"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/posts\/782","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/comments?post=782"}],"version-history":[{"count":3,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions"}],"predecessor-version":[{"id":799,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/posts\/782\/revisions\/799"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/media\/801"}],"wp:attachment":[{"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/media?parent=782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/categories?post=782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostelevate.com\/blog\/wp-json\/wp\/v2\/tags?post=782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}