{"id":4686,"date":"2018-09-27T18:44:45","date_gmt":"2018-09-27T18:44:45","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/2018\/09\/27\/how-to-create-a-git-repository-on-your-reseller-vps\/"},"modified":"2021-11-18T13:39:55","modified_gmt":"2021-11-18T18:39:55","slug":"how-to-create-a-git-repository-on-your-reseller-vps","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/","title":{"rendered":"How to Create a Git Repository on Your Reseller VPS"},"content":{"rendered":"\n<p>Your reseller customers can use Git for all kinds of projects, whether they&#8217;re moving around static files or managing WordPress theme updates. If they want to use Git, let them use Git! But maybe they don&#8217;t know how to open and sync with their own self-hosted repository. This is where you can save the day for them! In this article, we&#8217;re going to show you <strong>how to create Git repositories<\/strong> if you <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\/vps-hosting-reseller\">resell VPS<\/a> space or if you have a <a href=\"https:\/\/www.inmotionhosting.com\/managed-dedicated-servers\">managed dedicated server<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Add a Git Repository in cPanel<\/h2>\n\n\n\n<p>You can easily add a Git repository from within any cPanel account.<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li>Log into <a href=\"\/support\/edu\/cpanel\/access-cpanel-via-whm\/\">cPanel<\/a><\/li><li>Select <b>Git Version Control<\/b> under <em>Files<\/em><\/li><li>Click <b>Create<\/b><\/li><li>Uncheck <b>Clone a Repository<\/b> (unless you actually are cloning a repository)<\/li><li>Fill in a <b>Directory path<\/b> and <b>Name<\/b> for the new repository<\/li><li>Click <b>Create<\/b><\/li><\/ol>\n\n\n\n<p>That&#8217;s it! cPanel will provide a list of helpful commands you can use right away to use the new repository. Remember, if you destroy a repository from within cPanel, you will erase all of the files with it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Initialize a Git Repository Manually<\/h2>\n\n\n\n<p>If you&#8217;re already quite familiar with Git, you can manually create repositories on the command line. The procedure is slightly different:<\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a href=\"\/support\/server\/ssh\/how-to-login-ssh\/\">Log into VPS via SSH<\/a><\/li><li>Create a directory for the repository<\/li><li>Enter the directory and run\n<pre class=\"cli\">git init --bare<\/pre>\n<\/li><\/ol>\n\n\n\n<p>All of these steps are covered in detail in our full guide on <a href=\"\/support\/website\/git\/using-git-to-publish-files\/\">using Git to publish<\/a> files.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Putting it All Together<\/h2>\n\n\n\n<p>We&#8217;ve now presented you with two different ways to set up Git repositories in your Reseller VPS hosting environment:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Through the cPanel<\/li><li>Manual Git initialization<\/li><\/ul>\n\n\n\n<p>If you&#8217;re excited to start using Git on your server, be sure our <a href=\"\/support\/website\/git\/\">full Git guide<\/a> to get up to speed, get a refresher, or just find out exactly what Git is and how you can use it.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Your reseller customers can use Git for all kinds of projects, whether they&#8217;re moving around static files or managing WordPress theme updates. If they want to use Git, let them use Git! But maybe they don&#8217;t know how to open and sync with their own self-hosted repository. This is where you can save the day<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\"> Read More ><\/a><\/p>\n","protected":false},"author":17,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4309,4324],"tags":[],"class_list":["post-4686","post","type-post","status-publish","format-standard","hentry","category-git","category-vps-hosting"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Create a Git Repository on Your Reseller VPS | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article, we&#039;re going to learn about creating git repositories on a Reseller VPS server.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a Git Repository on Your Reseller VPS | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article, we&#039;re going to learn about creating git repositories on a Reseller VPS server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2018-09-27T18:44:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T18:39:55+00:00\" \/>\n<meta name=\"author\" content=\"Christopher Maiorana\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Christopher Maiorana\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Create a Git Repository on Your Reseller VPS\",\"datePublished\":\"2018-09-27T18:44:45+00:00\",\"dateModified\":\"2021-11-18T18:39:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\"},\"wordCount\":320,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Git\",\"VPS Hosting\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\",\"name\":\"How to Create a Git Repository on Your Reseller VPS | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2018-09-27T18:44:45+00:00\",\"dateModified\":\"2021-11-18T18:39:55+00:00\",\"description\":\"In this article, we're going to learn about creating git repositories on a Reseller VPS server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Create a Git Repository on Your Reseller VPS\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\",\"name\":\"Christopher Maiorana\",\"description\":\"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Create a Git Repository on Your Reseller VPS | InMotion Hosting","description":"In this article, we're going to learn about creating git repositories on a Reseller VPS server.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to Create a Git Repository on Your Reseller VPS | InMotion Hosting","og_description":"In this article, we're going to learn about creating git repositories on a Reseller VPS server.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2018-09-27T18:44:45+00:00","article_modified_time":"2021-11-18T18:39:55+00:00","author":"Christopher Maiorana","twitter_card":"summary_large_image","twitter_creator":"@InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Christopher Maiorana","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Create a Git Repository on Your Reseller VPS","datePublished":"2018-09-27T18:44:45+00:00","dateModified":"2021-11-18T18:39:55+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/"},"wordCount":320,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Git","VPS Hosting"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/","name":"How to Create a Git Repository on Your Reseller VPS | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2018-09-27T18:44:45+00:00","dateModified":"2021-11-18T18:39:55+00:00","description":"In this article, we're going to learn about creating git repositories on a Reseller VPS server.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-create-a-git-repository-on-your-reseller-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Create a Git Repository on Your Reseller VPS"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f","name":"Christopher Maiorana","description":"Christopher Maiorana joined the InMotion community team in 2015 and regularly dispenses tips and tricks in the Support Center, Community Q&A, and the InMotion Hosting Blog.","sameAs":["https:\/\/www.linkedin.com\/in\/chris-m-4623144b\/"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/christopherm\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":null,"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=4686"}],"version-history":[{"count":7,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4686\/revisions"}],"predecessor-version":[{"id":91735,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4686\/revisions\/91735"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}