{"id":1537,"date":"2019-02-08T10:35:56","date_gmt":"2019-02-08T10:35:56","guid":{"rendered":"https:\/\/blog.hostinger.io\/support\/2019\/02\/08\/1583302-how-to-deploy-a-git-repository-in-hostinger\/"},"modified":"2026-05-27T21:54:44","modified_gmt":"2026-05-27T21:54:44","slug":"1583302-how-to-deploy-a-git-repository-in-hostinger","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/1583302-how-to-deploy-a-git-repository-in-hostinger\/","title":{"rendered":"How to deploy a Git repository in Hostinger"},"content":{"rendered":"<p class=\"no-margin\">Git is a Version Control System (VCS) used to track changes in files and coordinate work among developers. This integration allows you to seamlessly deploy PHP files, WordPress websites, and custom static projects from GitHub directly to your hosting plan.<\/p><h2 id=\"before-you-start\">Before you start<\/h2><ul>\n<li>Git integration is available for custom PHP and HTML websites hosted on web and cloud hosting plans.<\/li>\n<li>For Node.js websites, refer to the guide on <a href=\"https:\/\/www.hostinger.com\/support\/how-to-deploy-a-nodejs-website-in-hostinger\/#Deploying-from-Github-Repository\">deploying Node.js<\/a> from a GitHub repository. instead.<\/li>\n<li>Git integration is not available on agency hosting.<\/li>\n<li>Hostinger Horizons and Hostinger Website Builder websites do not support Git integration.<\/li>\n<\/ul><h2 id=\"deployment\">Set up Git deployment<\/h2><p>Git deployment on hPanel uses GitHub OAuth, allowing you to connect your GitHub account and deploy directly from your repositories &mdash; no SSH key setup required. You can deploy PHP files, WordPress websites, and similar projects using this integration.<\/p><p class=\"no-margin\">For the initial deployment of a Git repository:<\/p><ol>\n<li class=\"no-margin\">Go to hPanel <span style=\"font-weight: 400\">&rarr; <\/span> <a class=\"intercom-content-link\" href=\"https:\/\/hpanel.hostinger.com\/websites\" target=\"_blank\" rel=\"noopener\">Websites<\/a>.<\/li>\n<li class=\"no-margin\"><b> <\/b>Locate the website and click on<b> Dashboard <\/b>next to it.<\/li>\n<li class=\"no-margin\">On the sidebar, select Advanced <span style=\"font-weight: 400\">&rarr;<\/span> <b>Git.<br>\n<\/b><img decoding=\"async\" src=\"\/support\/wp-content\/uploads\/sites\/55\/2019\/02\/ef3dae90-8efa-4d9d-b987-c32b73723750.jpg\" alt=\"Hostinger panel showing the GIT menu item highlighted under Advanced after searching for git\" data-media-id=\"5347\"><\/li>\n<li class=\"no-margin\">Click <strong>Continue with GitHub<\/strong> to connect your GitHub account via OAuth.<img decoding=\"async\" class=\"alignnone size-full wp-image-10621\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16.png\" alt=\"\" width=\"734\" height=\"302\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16.png 734w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16-300x123.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/li>\n<li>Install and authorize the Hostinger extension on your GitHub account or specific repository when prompted by GitHub.<\/li>\n<li class=\"no-margin\">Once authorized, select the repository you want to deploy from the list and click <strong>Next<\/strong>.<\/li>\n<li class=\"no-margin\"><span data-path-to-node=\"12,5,0,1\"><span class=\"citation-243\">Confirm your deployment settings<\/span><\/span><span data-path-to-node=\"12,5,0,3\">:<\/span>\n<ol>\n<li class=\"no-margin\"><strong>Repository<\/strong>: Pre-filled based on your selection.<img decoding=\"async\" class=\"alignnone size-full wp-image-10623\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16_2.png\" alt=\"\" width=\"582\" height=\"522\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16_2.png 582w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-16_2-300x269.png 300w\" sizes=\"(max-width: 582px) 100vw, 582px\" \/><\/li>\n<li class=\"no-margin\"><strong>Branch<\/strong>: Select the branch you want to deploy (defaults to <code>main<\/code>).<\/li>\n<li class=\"no-margin\"><strong>Root directory<\/strong>: The folder where your repository files will be deployed. Defaults to <code>public_html<\/code>. <b>You can change this<\/b> to any valid directory on your hosting account (e.g., <code>public_html\/my-project)<\/code><\/li>\n<li class=\"no-margin\">Click <strong>Deploy<\/strong>.<img decoding=\"async\" class=\"alignnone size-full wp-image-10624\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17.png\" alt=\"\" width=\"649\" height=\"636\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17.png 649w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17-300x294.png 300w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/li>\n<li class=\"no-margin\">An automated confirmation message appears when the deployment is complete. Click <strong>Go to dashboard<\/strong> to return to your Git management screen.<\/li>\n<\/ol>\n<\/li>\n<\/ol><div>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-10625\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17_1.png\" alt=\"\" width=\"542\" height=\"410\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17_1.png 542w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-17_1-300x227.png 300w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/p>\n<h2 id=\"management\">Manage your deployed Git repository<\/h2>\n<p>From your Git overview section, you can monitor and control your active repository settings:<\/p>\n<ul>\n<li><strong>View repository details<\/strong>: Check your active connected repository and GitHub account credentials.<\/li>\n<li><strong>Auto-deployment status<\/strong>: Review automated settings where any updates merged into your deployment branch automatically trigger a new deployment.<\/li>\n<li><strong>Manual deployment<\/strong>: Click Redeploy to manually fetch and apply the latest changes from your repository.<\/li>\n<li><strong>Deployment history<\/strong>:&nbsp;Access the Deployments tab to review previous deployment details, including the branch name, commit ID, timestamp, and status.<br>\n<img decoding=\"async\" class=\"alignnone size-full wp-image-10627\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-19.png\" alt=\"\" width=\"643\" height=\"353\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-19.png 643w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-19-300x165.png 300w\" sizes=\"(max-width: 643px) 100vw, 643px\" \/><\/li>\n<li><strong>Disconnect repository<\/strong>: Click the options button &#8942; &rarr; <strong>Disconnect from repository<\/strong> if you need to unlink your project. Your website files will reflect the deployed state of your chosen repository branch. <img decoding=\"async\" class=\"alignnone size-full wp-image-10628\" src=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-30_1.png\" alt=\"\" width=\"640\" height=\"238\" srcset=\"https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-30_1.png 640w, https:\/\/www.hostinger.com\/support\/wp-content\/uploads\/sites\/55\/2026\/05\/2026-05-15_11-30_1-300x112.png 300w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/li>\n<\/ul>\n<p><strong>NOTE<\/strong><\/p>\n<ul>\n<li>Disconnecting or changing your deployment repository will cause newly deployed files to overwrite existing data in your target directory.<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Connect your GitHub account to Hostinger using OAuth to easily manage and deploy website repositories<\/p>\n","protected":false},"author":581,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"include_on_kodee":true,"footnotes":""},"categories":[264],"tags":[],"class_list":["post-1537","post","type-post","status-publish","format-standard","hentry","category-advanced-hpanel"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/1583302-how-to-deploy-a-git-repository-in-hostinger\/","default":1},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/support\/1583302-como-implementar-un-repositorio-git-en-hostinger\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/support\/1583302-comment-deployer-un-depot-git-hostinger\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/support\/1583302-bagaimana-cara-deploy-repositori-git-di-hostinger\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/br\/support\/1583302-como-implantar-fazer-o-deploy-de-um-repositorio-git-hostinger\/","default":0},{"locale":"uk-UA","link":"https:\/\/www.hostinger.com\/ua\/support\/1583302----git--hostinger\/","default":0}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1537","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/581"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=1537"}],"version-history":[{"count":7,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1537\/revisions"}],"predecessor-version":[{"id":10927,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1537\/revisions\/10927"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=1537"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=1537"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=1537"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}