{"id":14480,"date":"2012-07-26T16:03:36","date_gmt":"2012-07-26T08:03:36","guid":{"rendered":"https:\/\/www.hongkiat.com\/blog\/?p=14480"},"modified":"2022-07-13T17:33:35","modified_gmt":"2022-07-13T09:33:35","slug":"mountain-lion-git-fix","status":"publish","type":"post","link":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/","title":{"rendered":"Git &#8220;Command not found&#8221; Error in Mountain Lion [Quickfix]"},"content":{"rendered":"<p>Exploring the new Mountain lion can be exciting, especially when you are trying to <a href=\"https:\/\/www.hongkiat.com\/blog\/mountain-lion-features\/\">find out what the latest Mac OS X has to offer<\/a>. But if you are a web developer who used GIT in your previous OS, you may be prompted with the following error message:<\/p>\n<p>\"<strong>-bash: git: command not found<\/strong>\"\u00a0<\/p>\n<p>when you try executing the <code>git<\/code> command in your Terminal.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg\" width=\"500\" height=\"88\" alt=\"git not found\"><\/p>\n<p>Don\u2019t worry, here\u2019s how you can fix this very quickly in just two steps.<\/p>\n<h2>Step 1<\/h2>\n<p>Launch the App Store then download \"<strong>Xcode<\/strong>\".<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/install-xcode.jpg\" width=\"500\" height=\"246\" alt=\"install xcode\"><\/p>\n<h2>Step 2 <\/h2>\n<p>Install Xcode, run it and go to Xcode\u2019s preference via shortcut key <span class=\"key\">Command<\/span> + <span class=\"key\">,<\/span><\/p>\n<p>Go to the <strong>Downloads<\/strong> tab, look for \"<strong>Command Line Tools<\/strong>\", and click <strong>Install<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/install-command-line-tools.jpg\" width=\"500\" height=\"219\" alt=\"install command line tools\"><\/p>\n<p>You may be required to enter an Apple Developer ID. If you don\u2019t have an account, just register for one.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/login-with-apple-dev-id.jpg\" width=\"493\" height=\"285\" alt=\"login with apple id\"><\/p>\n<h2>Step 3 <\/h2>\n<p>We kid. That\u2019s it. Once the Command Line Tool is installed, quit and re-open Terminal, hit the <code>git<\/code> command and see if it has been successfully reinstated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/test-git-in-terminal.jpg\" width=\"500\" height=\"358\" alt=\"test git in terminal\"><\/p>","protected":false},"excerpt":{"rendered":"<p>Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web developer who used GIT in your previous OS, you may be prompted with the following error message: &#8220;-bash: git: command not found&#8221;\u00a0 when you&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3392],"tags":[3053,2081,3933],"topic":[4520],"class_list":["entry-content","is-maxi"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v22.8 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Git &quot;Command not found&quot; Error in Mountain Lion [Quickfix] - Hongkiat<\/title>\n<meta name=\"description\" content=\"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web\" \/>\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.hongkiat.com\/blog\/mountain-lion-git-fix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git &quot;Command not found&quot; Error in Mountain Lion [Quickfix]\" \/>\n<meta property=\"og:description\" content=\"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/\" \/>\n<meta property=\"og:site_name\" content=\"Hongkiat\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hongkiatcom\" \/>\n<meta property=\"article:published_time\" content=\"2012-07-26T08:03:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-07-13T09:33:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg\" \/>\n<meta name=\"author\" content=\"Hongkiat Lim\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:site\" content=\"@hongkiat\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hongkiat Lim\" \/>\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.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/\"},\"author\":{\"name\":\"Hongkiat Lim\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\"},\"headline\":\"Git &#8220;Command not found&#8221; Error in Mountain Lion [Quickfix]\",\"datePublished\":\"2012-07-26T08:03:36+00:00\",\"dateModified\":\"2022-07-13T09:33:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/\"},\"wordCount\":174,\"commentCount\":23,\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mountain-lion-git-fix\\\/git-not-found.jpg\",\"keywords\":[\"Command Line\",\"Git\",\"macOS\"],\"articleSection\":[\"Coding\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/\",\"name\":\"Git \\\"Command not found\\\" Error in Mountain Lion [Quickfix] - Hongkiat\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mountain-lion-git-fix\\\/git-not-found.jpg\",\"datePublished\":\"2012-07-26T08:03:36+00:00\",\"dateModified\":\"2022-07-13T09:33:35+00:00\",\"description\":\"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#primaryimage\",\"url\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mountain-lion-git-fix\\\/git-not-found.jpg\",\"contentUrl\":\"https:\\\/\\\/assets.hongkiat.com\\\/uploads\\\/mountain-lion-git-fix\\\/git-not-found.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/mountain-lion-git-fix\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git &#8220;Command not found&#8221; Error in Mountain Lion [Quickfix]\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"name\":\"Hongkiat\",\"description\":\"Tech and Design Tips\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#organization\",\"name\":\"Hongkiat.com\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"contentUrl\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/wp-content\\\/uploads\\\/hkdc-logo-rect-yoast.jpg\",\"width\":1200,\"height\":799,\"caption\":\"Hongkiat.com\"},\"image\":{\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/hongkiatcom\",\"https:\\\/\\\/x.com\\\/hongkiat\",\"https:\\\/\\\/www.pinterest.com\\\/hongkiat\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/#\\\/schema\\\/person\\\/e3613a3bf757e4f67770f0b7a339edd0\",\"name\":\"Hongkiat Lim\",\"description\":\"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.\",\"sameAs\":[\"http:\\\/\\\/www.hongkiat.com\\\/blog\"],\"url\":\"https:\\\/\\\/www.hongkiat.com\\\/blog\\\/author\\\/hongkiat\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git \"Command not found\" Error in Mountain Lion [Quickfix] - Hongkiat","description":"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web","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.hongkiat.com\/blog\/mountain-lion-git-fix\/","og_locale":"en_US","og_type":"article","og_title":"Git \"Command not found\" Error in Mountain Lion [Quickfix]","og_description":"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web","og_url":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/","og_site_name":"Hongkiat","article_publisher":"https:\/\/www.facebook.com\/hongkiatcom","article_published_time":"2012-07-26T08:03:36+00:00","article_modified_time":"2022-07-13T09:33:35+00:00","og_image":[{"url":"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg","type":"","width":"","height":""}],"author":"Hongkiat Lim","twitter_card":"summary_large_image","twitter_creator":"@hongkiat","twitter_site":"@hongkiat","twitter_misc":{"Written by":"Hongkiat Lim","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#article","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/"},"author":{"name":"Hongkiat Lim","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0"},"headline":"Git &#8220;Command not found&#8221; Error in Mountain Lion [Quickfix]","datePublished":"2012-07-26T08:03:36+00:00","dateModified":"2022-07-13T09:33:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/"},"wordCount":174,"commentCount":23,"publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg","keywords":["Command Line","Git","macOS"],"articleSection":["Coding"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/","url":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/","name":"Git \"Command not found\" Error in Mountain Lion [Quickfix] - Hongkiat","isPartOf":{"@id":"https:\/\/www.hongkiat.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#primaryimage"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#primaryimage"},"thumbnailUrl":"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg","datePublished":"2012-07-26T08:03:36+00:00","dateModified":"2022-07-13T09:33:35+00:00","description":"Exploring the new Mountain lion can be exciting, especially when you are trying to find out what the latest Mac OS X has to offer. But if you are a web","breadcrumb":{"@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#primaryimage","url":"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg","contentUrl":"https:\/\/assets.hongkiat.com\/uploads\/mountain-lion-git-fix\/git-not-found.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.hongkiat.com\/blog\/mountain-lion-git-fix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.hongkiat.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Git &#8220;Command not found&#8221; Error in Mountain Lion [Quickfix]"}]},{"@type":"WebSite","@id":"https:\/\/www.hongkiat.com\/blog\/#website","url":"https:\/\/www.hongkiat.com\/blog\/","name":"Hongkiat","description":"Tech and Design Tips","publisher":{"@id":"https:\/\/www.hongkiat.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hongkiat.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.hongkiat.com\/blog\/#organization","name":"Hongkiat.com","url":"https:\/\/www.hongkiat.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","contentUrl":"https:\/\/www.hongkiat.com\/blog\/wp-content\/uploads\/hkdc-logo-rect-yoast.jpg","width":1200,"height":799,"caption":"Hongkiat.com"},"image":{"@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/hongkiatcom","https:\/\/x.com\/hongkiat","https:\/\/www.pinterest.com\/hongkiat\/"]},{"@type":"Person","@id":"https:\/\/www.hongkiat.com\/blog\/#\/schema\/person\/e3613a3bf757e4f67770f0b7a339edd0","name":"Hongkiat Lim","description":"Founder and Editor in Chief of Hongkiat.com. Hongkiat is also a designer, developer, entrepreneur, and an active investor in the US stock market.","sameAs":["http:\/\/www.hongkiat.com\/blog"],"url":"https:\/\/www.hongkiat.com\/blog\/author\/hongkiat\/"}]}},"jetpack_featured_media_url":"https:\/\/","jetpack_shortlink":"https:\/\/wp.me\/p4uxU-3Ly","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14480","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/comments?post=14480"}],"version-history":[{"count":2,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14480\/revisions"}],"predecessor-version":[{"id":14482,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/posts\/14480\/revisions\/14482"}],"wp:attachment":[{"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/media?parent=14480"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/categories?post=14480"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/tags?post=14480"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.hongkiat.com\/blog\/wp-json\/wp\/v2\/topic?post=14480"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}