{"id":4202,"date":"2019-08-30T15:29:09","date_gmt":"2019-08-30T20:29:09","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=4202"},"modified":"2021-08-16T15:57:23","modified_gmt":"2021-08-16T19:57:23","slug":"how-to-install-git","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/","title":{"rendered":"How to Install Git"},"content":{"rendered":"<p>It is important to remember that Git must be installed both on your local computer and at your remote server location. This article will show you <strong>how to install Git<\/strong> for Mac, Windows, and Linux operating systems along with your InMotion Hosting server.<\/p>\n<div class=\"alert alert-danger\" role=\"alert\">\n<p>VPS\/Dedicated hosting plans come with Git pre-installed. For self-managed accounts, installing Git requires <a href=\"\/support\/amp\/obtain-root-access\/\">root access<\/a> or superuser (<em>sudo<\/em>) privileges. You will also need to <a href=\"\/support\/website\/add-ip-to-firewall\/\">whitelist any IP address<\/a> that requires SSH access to a Git repository.<\/p>\n<\/div>\n<h2>How to Install Git On Your Computer<\/h2>\n<div class=\"alert alert-warning\" role=\"alert\">\n<p>Be sure to check the specific version of your operating system. If you are using an older version of Mac OS X or Windows XP, consider upgrading, but be sure to check the downloadable archives for older versions of Git.<\/p>\n<\/div>\n<h3>Mac OS X<\/h3>\n<p>Downloading git for your mac involves a simple procedure with which you are most likely familiar. You will download an executable installer file, open it, follow the steps, and you\u2019re done. Follow along with the steps to see this process illustrated.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/images\/stories\/git\/git-mac-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/git-mac-1.png\" alt=\"\" width=\"717\" height=\"327\"><\/a>Visit the <a href=\"https:\/\/git-scm.com\/download\/mac\">Git downloads page<\/a> to retrieve the installer file\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/git-mac-2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/git-mac-2.png\" alt=\"\" width=\"700\" height=\"520\"><\/a>Open the file and follow the brief install wizard\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/git-mac-3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/git-mac-3.png\" alt=\"\" width=\"665\" height=\"446\"><\/a>It would be best to restart your computer, but if you want to test that the install succeeded, open the Terminal app and run this command:\n<pre class=\"code_block\"> git --version<\/pre>\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<h3>Windows<\/h3>\n<p>In a similar fashion to the Mac installation above, there is an executable Windows installer available on the <a href=\"https:\/\/git-scm.com\/download\/win\">Git downloads page<\/a>.<\/p>\n<ol class=\"article_list\">\n<li><a href=\"\/support\/images\/stories\/git\/Capture-1.PNG\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px     15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/Capture-1.PNG\" alt=\"\" width=\"302\" height=\"113\"><\/a> Download the Git for Windows executable installer file\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/Capture-2.PNG\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px     15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/Capture-2.PNG\" alt=\"\" width=\"585\" height=\"475\"><\/a> Click <b>Next<\/b> to continue through the setup wizard\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/Capture-3.PNG\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px     15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/Capture-3.PNG\" alt=\"\" width=\"588\" height=\"475\"><\/a> The <b>Use Git from the Windows Command Prompt<\/b> option is considered safe to use because it adds minimal extras to your command line\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/Capture-4.PNG\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/Capture-4.PNG\" alt=\"\" width=\"587\" height=\"476\"><\/a>Click <b>Next<\/b> through the next series of options\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<li><a href=\"\/support\/images\/stories\/git\/Capture-5.PNG\"><img loading=\"lazy\" decoding=\"async\" class=\"std_ss alignnone\" style=\"float: right; margin: 0px 15px 15px 15px; width: 200px;\" src=\"\/support\/images\/stories\/git\/Capture-5.PNG\" alt=\"\" width=\"589\" height=\"476\"><\/a>Click the <b>Finish<\/b> button to complete the installation\n<div style=\"clear: both;\"><\/div>\n<\/li>\n<\/ol>\n<p>You now have Git installed on your Windows computer, and you can run the version command used above for the Mac OS installation to test your configuration.<\/p>\n<h2>How to Install Git on Your InMotion Hosting Server<\/h2>\n<p>These steps will be similar for your VPS\/Dedicated server and your <em>Choose your own stack<\/em> server and your local Linux operating system.<\/p>\n<p>The easiest way to get Git up and running on your computer is to open up your favorite Terminal app or command line utility and run an installation command.<\/p>\n<p>For the most popular enterprise Linux distributions such as CentOS, the following command will provide you with the most recent stable version of Git.<\/p>\n<pre class=\"code_block\"> sudo dnf install git-all<\/pre>\n<p>For Debian\/Ubuntu operating systems, you can run this command:<\/p>\n<pre class=\"code_block\"> sudo apt-get install git<\/pre>\n<p>For Fedora operating systems, you can use:<\/p>\n<pre class=\"code_block\"> sudo yum install git<\/pre>\n<p>It is best advised to check your operating system and current version and use commands listed in the <a href=\"https:\/\/git-scm.com\/download\/linux\">Git documentation<\/a>.<\/p>\n<p>In the next article, we\u2019ll learn about how to <a href=\"\/support\/website\/git\/how-to-add-files-to-git-2\/\">initiate your repository<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It is important to remember that Git must be installed both on your local computer and at your remote server location. This article will show you how to install Git for Mac, Windows, and Linux operating systems along with your InMotion Hosting server. VPS\/Dedicated hosting plans come with Git pre-installed. For self-managed accounts, installing Git<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\"> 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],"tags":[],"class_list":["post-4202","post","type-post","status-publish","format-standard","hentry","category-git"],"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 Install Git | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your 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-install-git\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Git | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your server.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\" \/>\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=\"2019-08-30T20:29:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-08-16T19:57:23+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=\"2 minutes\" \/>\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-install-git\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\"},\"author\":{\"name\":\"Christopher Maiorana\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f\"},\"headline\":\"How to Install Git\",\"datePublished\":\"2019-08-30T20:29:09+00:00\",\"dateModified\":\"2021-08-16T19:57:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\"},\"wordCount\":460,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"articleSection\":[\"Git\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\",\"name\":\"How to Install Git | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"datePublished\":\"2019-08-30T20:29:09+00:00\",\"dateModified\":\"2021-08-16T19:57:23+00:00\",\"description\":\"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your server.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Git\"}]},{\"@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 Install Git | InMotion Hosting","description":"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your 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-install-git\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Git | InMotion Hosting","og_description":"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your server.","og_url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2019-08-30T20:29:09+00:00","article_modified_time":"2021-08-16T19:57:23+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":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/"},"author":{"name":"Christopher Maiorana","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/c6922c56c84e17079fd558e07b7ef72f"},"headline":"How to Install Git","datePublished":"2019-08-30T20:29:09+00:00","dateModified":"2021-08-16T19:57:23+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/"},"wordCount":460,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"articleSection":["Git"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/","url":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/","name":"How to Install Git | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"datePublished":"2019-08-30T20:29:09+00:00","dateModified":"2021-08-16T19:57:23+00:00","description":"In this article, we will show you how to install Git for Mac, Windows, and Linux as well as your server.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/website\/git\/how-to-install-git\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Install Git"}]},{"@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\/4202","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=4202"}],"version-history":[{"count":3,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4202\/revisions"}],"predecessor-version":[{"id":83249,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/4202\/revisions\/83249"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=4202"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=4202"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=4202"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}