{"id":1035,"date":"2026-01-14T12:34:00","date_gmt":"2026-01-14T12:34:00","guid":{"rendered":"https:\/\/www.4uhosting.co.uk\/articles\/?post_type=kb_article&#038;p=1035"},"modified":"2026-08-19T14:00:45","modified_gmt":"2026-08-19T13:00:45","slug":"use-git-version-control","status":"publish","type":"kb_article","link":"https:\/\/www.4uhosting.co.uk\/articles\/knowledgebase\/use-git-version-control\/","title":{"rendered":"How to Use Git Version Control in cPanel"},"content":{"rendered":"<figure class=\"wp-block-image\" style=\"margin:1.35rem 0 1.75rem;\"><a href=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-git-version-control-main.png\"><img decoding=\"async\" src=\"https:\/\/www.4uhosting.co.uk\/articles\/wp-content\/uploads\/2026\/08\/01-git-version-control-main.png\" alt=\"Git Version Control screen in cPanel\" style=\"display:block;max-width:100%;height:auto;\" \/><\/a><\/figure>\n<h2>Create a Repository<\/h2>\n<ol>\n<li>Go to <strong>Files &gt; Git Version Control<\/strong>.<\/li>\n<li value=\"2\">Click <strong>Create<\/strong>.<\/li>\n<li value=\"3\">Turn on <strong>Clone a Repository<\/strong> if you want to clone an existing remote repository.<\/li>\n<li value=\"4\">Enter the clone URL if you are cloning.<\/li>\n<li value=\"5\">Enter the repository path.<\/li>\n<li value=\"6\">Enter a repository name.<\/li>\n<li value=\"7\">Click <strong>Create<\/strong>.<\/li>\n<\/ol>\n<h2>Manage a Repository<\/h2>\n<ol>\n<li>Go to <strong>Files &gt; Git Version Control<\/strong>.<\/li>\n<li value=\"2\">Find the repository.<\/li>\n<li value=\"3\">Click <strong>Manage<\/strong>.<\/li>\n<li value=\"4\">Use the available options to view deployment settings, history, or repository details.<\/li>\n<\/ol>\n<h2>Pull Changes<\/h2>\n<ol>\n<li>Go to <strong>Files &gt; Git Version Control<\/strong>.<\/li>\n<li value=\"2\">Open <strong>Manage<\/strong> for the repository.<\/li>\n<li value=\"3\">Click <strong>Update from Remote<\/strong> if the option is available.<\/li>\n<li value=\"4\">Wait for cPanel to finish the update.<\/li>\n<\/ol>\n<h2>Delete a Repository<\/h2>\n<ol>\n<li>Go to <strong>Files &gt; Git Version Control<\/strong>.<\/li>\n<li value=\"2\">Find the repository.<\/li>\n<li value=\"3\">Click <strong>Delete<\/strong>.<\/li>\n<li value=\"4\">Confirm the deletion.<\/li>\n<\/ol>\n<h2>Notes<\/h2>\n<ul>\n<li>Do not edit repository files in File Manager unless that is part of your workflow.<\/li>\n<li>Make sure the repository path is correct before creating it.<\/li>\n<li>Some Git deployment options depend on how the server is configured.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Create a Repository Go to Files &gt; Git Version Control. Click Create. Turn on Clone a Repository if you want to clone an existing&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"template":"","kb_category":[17],"class_list":["post-1035","kb_article","type-kb_article","status-publish","hentry","kb_category-cpanel-files"],"_links":{"self":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1035","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article"}],"about":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/types\/kb_article"}],"author":[{"embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1035\/revisions"}],"predecessor-version":[{"id":1257,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_article\/1035\/revisions\/1257"}],"wp:attachment":[{"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/media?parent=1035"}],"wp:term":[{"taxonomy":"kb_category","embeddable":true,"href":"https:\/\/www.4uhosting.co.uk\/articles\/wp-json\/wp\/v2\/kb_category?post=1035"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}