{"id":2356,"date":"2018-10-25T20:15:42","date_gmt":"2018-10-25T19:15:42","guid":{"rendered":"https:\/\/www.webhostingsrbija.rs\/?p=1332"},"modified":"2018-10-25T20:15:42","modified_gmt":"2018-10-25T19:15:42","slug":"kako-da-postavite-repository-git-na-cpanel","status":"publish","type":"post","link":"https:\/\/www.webhostingsrbija.rs\/en\/kako-da-postavite-repository-git-na-cpanel\/","title":{"rendered":"How to set up a git repository on cPanel"},"content":{"rendered":"<p>Popular these days is how to host your free github.io site on cPanel and connect cPanel in general with github.<\/p>\n<p>First of all you need to have the Git option enabled in cPanel.<\/p>\n<p>After which let&#039;s assume that you already have a repository created on github that is ready to be uploaded to cPanel itself.<\/p>\n<p>Go to your github repository and then click on &quot;Clone or download&quot; a window will appear with the link you copy, as in the picture below.<\/p>\n<p><a href=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github1.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"punavelicina aligncenter wp-image-1333 size-full\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github1.png\" alt=\"github na cPanel\" width=\"978\" height=\"471\" title=\"\"><\/a><\/p>\n<p>That link you copied (in our case it is: https:\/\/github.com\/webhostingsrbijaRS\/we\u2026) you need to insert in cPanel.<\/p>\n<p>Open cPanel then find the option &quot;Git Version control&quot; and then click &quot;Create&quot; (blue button). As in the picture below.<\/p>\n<p><a href=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github2.png\"><img decoding=\"async\" class=\"aligncenter wp-image-1334 size-full\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github2.png\" alt=\"github na cpanel\" width=\"1890\" height=\"633\" title=\"\"><\/a><\/p>\n<p>After which the following window will appear:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-1335\" src=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github3.png\" alt=\"github na cpanel\" width=\"1339\" height=\"853\" title=\"\" srcset=\"https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github3.png 1339w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github3-300x191.png 300w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github3-1024x652.png 1024w, https:\/\/www.webhostingsrbija.rs\/wp-content\/uploads\/2018\/10\/github3-768x489.png 768w\" sizes=\"(max-width: 1339px) 100vw, 1339px\" \/><\/p>\n<p><strong>In the &quot;Clone URL&quot; field\u201e<\/strong> enter the url you copied from github<\/p>\n<p><strong>In the &quot;repository path&quot;\u201e<\/strong>&nbsp;they will set an automatic path for you and you set the path for that repository, public_html should definitely be there, but an additional folder can be (for example: public_html\/test) if, like us in the example, you created a free site on pages.github.io, then enter only public_html.<\/p>\n<p><strong>In &quot;repository name&quot;\u201e<\/strong> you don&#039;t need to enter anything leave it as it is and click the button below &quot;Create&quot;.<\/p>\n<p>If everything is fine, you will receive a message in the upper right corner:<\/p>\n<blockquote><p><em><strong class=\"alert-title\">Information:<\/strong><span class=\"alert-body\"><span id=\"txtMessage_info_alert0\">The system successfully initiated the clone process for the &quot;webhostingsrbijaRShub.io.git&quot; repository. The system may require more time to clone large remote repositories.<\/span><\/span><\/em><\/p><\/blockquote>\n<p>As it says everything went fine and you need to wait for some time (it depends on a lot of things and there is no approximate, you just have to be patient and wait) and it will appear on that page.<\/p>\n<p>That&#039;s it, you&#039;re done.<\/p>","protected":false},"excerpt":{"rendered":"<p>Popularno ovih dana jeste kako da postavite svoj besplatan github.io sajt na cPanel i povezati cPanel generalno sa githubom. Pre svega potrebno je da imate omogu\u0107en Git opciju u cPanelu. Nakon \u010dega pretpostavimo da imate ve\u0107 repositorie kreiran na githubu koji je spreman da bude postavljen na sam cPanel. Idite na svoj github repositorie i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1964,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20,18],"tags":[],"class_list":["post-2356","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cpanel","category-kako"],"_links":{"self":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2356","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/comments?post=2356"}],"version-history":[{"count":0,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/posts\/2356\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media\/1964"}],"wp:attachment":[{"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/media?parent=2356"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/categories?post=2356"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhostingsrbija.rs\/en\/wp-json\/wp\/v2\/tags?post=2356"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}