{"id":5167,"date":"2021-02-24T13:55:02","date_gmt":"2021-02-24T05:55:02","guid":{"rendered":"https:\/\/www.xttblog.com\/?p=5167"},"modified":"2021-02-24T13:55:02","modified_gmt":"2021-02-24T05:55:02","slug":"%e4%bf%ae%e5%a4%8dmac%e5%8d%87%e7%ba%a7%e5%90%8eintellij-idea%e6%8a%a5cannot-run-git%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/www.xttblog.com\/?p=5167","title":{"rendered":"\u4fee\u590dMac\u5347\u7ea7\u540eIntelliJ idea\u62a5Cannot Run Git\u95ee\u9898"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u4ee5\u524d\u7684\u5c0f\u7c73\u9f20\u6807\u592a\u8d39\u7535\u4e86\uff0c\u4e8e\u662f\u5c31\u4e70\u4e86\u4e00\u4e2a\u7b2c\u4e8c\u4ee3\u7684\u5c0f\u7c73\u9f20\u6807\uff0c\u987a\u4fbf\u628a MacOS \u7684\u7cfb\u7edf\u7ed9\u5347\u7ea7\u4e86\u4e00\u756a\uff0c\u7ed3\u679c\u6253\u5f00 IntelliJ IDEA \u540e\u53d1\u73b0 Git \u65e0\u6cd5\u4f7f\u7528\u4e86\u3002\u5b8c\u6574\u9519\u8bef\u63d0\u9192\u4fe1\u606f\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">xcrun: error: invalid active developer path (\/Library\/Developer\/CommandLineTools), missing xcrun at: \/Library\/Developer\/CommandLineTools\/usr\/bin\/xcrun<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2021\/git-err.png\" alt=\"\" \/><figcaption>Cannot Run Git<\/figcaption><\/figure><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u521a\u5f00\u59cb\u5347\u7ea7\u540e\uff0c\u6211\u4ee5\u4e3a\u662f Git \u51fa\u95ee\u9898\u4e86\uff0c\u4f46\u662f\u8bd5\u4e86\u8bd5 SourceTree\uff0c\u53d1\u73b0\u6ca1\u95ee\u9898\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u5728 iTerm2 \u4e2d\u5c1d\u8bd5\u6267\u884c\u4e0b\u9762\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git --help<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7ed3\u679c\u4e5f\u51fa\u9519\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xcrun: error: invalid active developer path (\/Library\/Developer\/CommandLineTools), missing xcrun at: \/Library\/Developer\/CommandLineTools\/usr\/bin\/xcrun<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u4e00\u901a\u8c37\u6b4c\uff0c\u5f97\u77e5\u9700\u8981\u5b89\u88c5 xcode-selcet<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/gitee.com\/xmtblog\/img\/raw\/master\/2021\/xcode-select.png\" alt=\"\" \/><figcaption>xcode-selcet \u5b89\u88c5<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7136\u540e\u6267\u884c xcode-select &#8211;install \u8fdb\u884c command line developer tools \u5b89\u88c5\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>xcode-select --install<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165 git &#8211;help\uff0c\u53d1\u73b0 git \u53ef\u4ee5\u4f7f\u7528\u4e86\u3002\u7136\u540e\u91cd\u542f idea \u5f00\u53d1\u5de5\u5177\uff0cgit \u4e5f\u53ef\u4ee5\u6b63\u5e38\u4f7f\u7528\u4e86\uff01<\/p>\n<!-- <audio autoplay=\"autoplay\" height=\"100\" width=\"100\" hidden=\"true\"><source src=\"https:\/\/c.coka.la\/orAvPR.mp3\" type=\"audio\/mp3\"\/><\/audio><img decoding=\"async\" src=\"https:\/\/images.weserv.nl\/?url=https:\/\/ws3.sinaimg.cn\/large\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/> --><p><!-- <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/xmt1139057136\/xttblog\/master\/8fa5dcfcgy1g4em3rzar5j20ib089ae0.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/>--><img decoding=\"async\" src=\"https:\/\/saas.51autoparts.cn\/api\/admin\/sys-file\/oss\/file?fileName=84db51f8561e448f9a4fda2eff0811f9.jpg\" alt=\"\u4e1a\u4f59\u8349\u516c\u4f17\u53f7\"\/><\/p><p>\u6700\u540e\uff0c\u6b22\u8fce\u5173\u6ce8\u6211\u7684\u4e2a\u4eba\u5fae\u4fe1\u516c\u4f17\u53f7\uff1a\u4e1a\u4f59\u8349\uff08yyucao\uff09\uff01<b>\u53ef\u52a0\u4f5c\u8005\u5fae\u4fe1\u53f7\uff1a<font color=\"red\">xttblog2<\/font>\u3002\u5907\u6ce8\uff1a\u201c1\u201d\uff0c\u6dfb\u52a0\u535a\u4e3b\u5fae\u4fe1\u62c9\u4f60\u8fdb\u5fae\u4fe1\u7fa4\u3002\u5907\u6ce8\u9519\u8bef\u4e0d\u4f1a\u540c\u610f\u597d\u53cb\u7533\u8bf7\u3002<\/b>\u518d\u6b21\u611f\u8c22\u60a8\u7684\u5173\u6ce8\uff01\u540e\u7eed\u6709\u7cbe\u5f69\u5185\u5bb9\u4f1a\u7b2c\u4e00\u65f6\u95f4\u53d1\u7ed9\u60a8\uff01\u539f\u521b\u6587\u7ae0\u6295\u7a3f\u8bf7\u53d1\u9001\u81f3532009913@qq.com\u90ae\u7bb1\u3002\u5546\u52a1\u5408\u4f5c\u4e5f\u53ef\u6dfb\u52a0\u4f5c\u8005\u5fae\u4fe1\u8fdb\u884c\u8054\u7cfb\uff01<\/p><p>\u672c\u6587\u539f\u6587\u51fa\u5904\uff1a<a href=\"https:\/\/www.xttblog.com\">\u4e1a\u4f59\u8349<\/a>\uff1a &raquo; <a href=\"https:\/\/www.xttblog.com\/?p=5167\">\u4fee\u590dMac\u5347\u7ea7\u540eIntelliJ idea\u62a5Cannot Run Git\u95ee\u9898<\/a><\/p><!-- <div class=\"bd-reward-stl\"><button id=\"bdRewardBtn\"><span><\/span><\/button><\/div> -->","protected":false},"excerpt":{"rendered":"<p>\u4ee5\u524d\u7684\u5c0f\u7c73\u9f20\u6807\u592a\u8d39\u7535\u4e86\uff0c\u4e8e\u662f\u5c31\u4e70\u4e86\u4e00\u4e2a\u7b2c\u4e8c\u4ee3\u7684\u5c0f\u7c73\u9f20\u6807\uff0c\u987a\u4fbf\u628a MacOS \u7684\u7cfb\u7edf\u7ed9\u5347\u7ea7\u4e86\u4e00\u756a\uff0c\u7ed3\u679c\u6253\u5f00 In [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[1438,645,1437,1458,1885],"class_list":["post-5167","post","type-post","status-publish","format-standard","hentry","category-yyzt","tag-git","tag-gitbook","tag-github","tag-idea"],"_links":{"self":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5167"}],"version-history":[{"count":1,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5167\/revisions"}],"predecessor-version":[{"id":5168,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=\/wp\/v2\/posts\/5167\/revisions\/5168"}],"wp:attachment":[{"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xttblog.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}