{"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-09-01T04:27:22","modified_gmt":"2026-09-01T04:27:22","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":"
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<\/a> directly to your hosting plan.<\/p> Git deployment on hPanel uses GitHub OAuth, allowing you to connect your GitHub account and deploy directly from your repositories — no SSH key setup required. You can deploy PHP files, WordPress websites, and similar projects using this integration.<\/p> For the initial deployment of a Git repository:<\/p> From your Git overview section, you can monitor and control your active repository settings:<\/p>\n NOTE<\/strong><\/p>\n 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-BR","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":11,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1537\/revisions"}],"predecessor-version":[{"id":17668,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/1537\/revisions\/17668"}],"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}]}}Before you start<\/h3>
\n
Set up Git deployment<\/h2>
\n
\n<\/b>
<\/li>\n
<\/li>\n\n
<\/li>\nmain<\/code>).<\/li>\npublic_html<\/code>. You can change this<\/b> to any valid directory on your hosting account (e.g., public_html\/my-project)<\/code><\/li>\n
<\/li>\n
<\/p>\nManage your deployed Git repository<\/h2>\n
\n
\n
<\/li>\n
\n
<\/li>\n<\/ul>\n\n