{"id":170,"date":"2026-08-18T15:29:26","date_gmt":"2026-08-18T07:29:26","guid":{"rendered":"https:\/\/www.aiqqc.com\/?p=170"},"modified":"2026-08-18T16:38:41","modified_gmt":"2026-08-18T08:38:41","slug":"claude-code%e5%bf%85%e8%a3%85%e7%9a%84%e5%9f%ba%e7%a1%80%e7%8e%af%e5%a2%83%e4%be%9d%e8%b5%96","status":"publish","type":"post","link":"https:\/\/www.aiqqc.com\/index.php\/2026\/08\/18\/claude-code%e5%bf%85%e8%a3%85%e7%9a%84%e5%9f%ba%e7%a1%80%e7%8e%af%e5%a2%83%e4%be%9d%e8%b5%96\/","title":{"rendered":"Claude Code\u5fc5\u88c5\u7684\u57fa\u7840\u73af\u5883\u4f9d\u8d56"},"content":{"rendered":"\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u4e00\u30013\u4e2a\u91cd\u8981\u7684\u7cfb\u7edf\u5de5\u5177<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Claude Code\u672c\u4f53\u5b89\u88c5\u5b8c\u6210\uff0c\u5e76\u4e0d\u610f\u5473\u7740\u6240\u6709\u529f\u80fd\u90fd\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002Claude Code\u5728\u8fd0\u884c\u8fc7\u7a0b\u4e2d\u4f1a\u8c03\u7528\u4e00\u4e9b\u7cfb\u7edf\u7ea7\u5de5\u5177\u2014\u2014\u5982\u679c\u8fd9\u4e9b\u5de5\u5177\u7f3a\u5931\uff0c\u90e8\u5206\u529f\u80fd\u4f1a\u9759\u9ed8\u5931\u8d25\u6216\u62a5\u9519\u3002\u4ee5\u4e0b\u662f\u5404\u5e73\u53f0\u9700\u8981\u786e\u8ba4\u7684\u4f9d\u8d56\u9879\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u4f9d\u8d56<\/strong><\/td><td><strong>\u7528\u9014<\/strong><\/td><td><strong>\u5e73\u53f0<\/strong><\/td><td><strong>\u91cd\u8981\u6027<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Git<\/td><td>Checkpoint\u68c0\u67e5\u70b9\uff08\u81ea\u52a8\u4fdd\u5b58\u4ee3\u7801\u5feb\u7167\uff09\u3001\/diff\u5dee\u5f02\u5bf9\u6bd4\u3001\u7248\u672c\u63a7\u5236\u64cd\u4f5c<\/td><td>\u5168\u5e73\u53f0<\/td><td>\u5fc5\u88c5\uff0c\u7f3a\u5931\u5c06\u5bfc\u81f4\u6838\u5fc3\u529f\u80fd\u4e0d\u53ef\u7528<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">ripgrep (rg)<\/td><td>Claude Code\u7684Grep\u5de5\u5177\u5e95\u5c42\u4f9d\u8d56\uff0c\u7528\u4e8e\u9ad8\u901f\u4ee3\u7801\u641c\u7d22<\/td><td>\u5168\u5e73\u53f0<\/td><td>\u901a\u5e38Claude Code\u81ea\u5e26\uff0c\u4e00\u822c\u65e0\u9700\u624b\u52a8\u5b89\u88c5<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Xcode Command Line<br>Tools<\/td><td>\u63d0\u4f9bgcc\u3001make\u7b49\u7f16\u8bd1\u5de5\u5177\u94fe\uff0c\u90e8\u5206MCP Server\u5b89\u88c5\u65f6\u9700\u8981\u7f16\u8bd1\u539f\u751f\u6a21\u5757<\/td><td>macOS<\/td><td>macOS\u7528\u6237\u5fc5\u88c5<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u4e8c\u3001\u68c0\u67e5\u65b9\u5f0f<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git --version \n# \u5e94\u8f93\u51fa git version 2.x.x\nrg --version \n# \u5e94\u8f93\u51fa ripgrep 14.x.x\uff08\u53ef\u9009\u68c0\u67e5\uff09\nxcode-select -p \n# macOS\u7ec8\u7aef\u5e94\u8f93\u51fa \/Library\/Developer\/CommandLineTools<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u4e09\u3001\u5b89\u88c5Git<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08\u4e00\uff09Mac<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">macOS\u901a\u5e38\u9884\u88c5\u4e86Git\uff08\u968fXcode Command Line Tools\u4e00\u8d77\u63d0\u4f9b\uff09\u3002\u5982\u679c\u6267\u884cgit &#8211;version\u65e0\u8f93\u51fa\uff0c\u6700\u5feb\u7684\u65b9\u5f0f\u662f\u5b89\u88c5 Xcode Command Line Tools\uff0c\u5b83\u4f1a\u540c\u65f6\u5b89\u88c5 Git\u3002\u4e5f\u53ef\u4ee5\u901a\u8fc7Homebrew \u5355\u72ec\u5b89\u88c5\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>brew install git<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e09\u9879\u4f9d\u8d56\u4e2d\uff0cGit\u662f\u6700\u5173\u952e\u7684\u2014\u2014\u6ca1\u6709Git\uff0cClaude Code\u7684Checkpoint\u56de\u6eda\u673a\u5236\u5c06\u5b8c\u5168\u65e0\u6cd5\u5de5\u4f5c\uff0c\/diff \u547d\u4ee4\u4e5f\u65e0\u6cd5\u4f7f\u7528\u3002\u8bf7\u52a1\u5fc5\u786e\u8ba4Git\u5df2\u6b63\u786e\u5b89\u88c5\u540e\u518d\u7ee7\u7eed\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08\u4e8c\uff09Windows<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8bbf\u95eeGit\u5b98\u65b9\u4e0b\u8f7d\u9875\uff1agit-scm.com\/downloads\/win\uff0c\u4e0b\u8f7d64-bit Git for Windows Setup\u5b89\u88c5\u5305\u3002\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u65f6\uff0c\u5173\u952e\u9009\u9879\u5efa\u8bae\u5982\u4e0b\uff1a<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td class=\"has-text-align-center\" data-align=\"center\"><strong>\u9009\u9879<\/strong><\/td><td><strong>\u63a8\u8350\u914d\u7f6e<\/strong><\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Default Editor<\/td><td>\u9009\u62e9\u4f60\u60ef\u7528\u7684\u7f16\u8f91\u5668\uff08\u5982 VS Code\uff09<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">PATH environment<\/td><td>\u9009\u62e9 &#8220;Git from the command line and also from 3rd-party software&#8221;\uff08\u9ed8\u8ba4\u9879\uff0c\u786e\u4fdd\u7ec8\u7aef\u53ef\u7528\uff09<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">Line ending<\/td><td>\u9009\u62e9 &#8220;Checkout as-is, commit Unix-style&#8221;\uff08\u9002\u5408\u8de8\u5e73\u53f0\u5f00\u53d1\uff09<\/td><\/tr><tr><td class=\"has-text-align-center\" data-align=\"center\">\u5176\u4f59\u9009\u9879<\/td><td>\u4fdd\u6301\u9ed8\u8ba4\u5373\u53ef<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\uff08\u4e09\uff09Linux<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># Ubuntu \/ Debian\nsudo apt update &amp;&amp; sudo apt install git\n\n# CentOS \/ RHEL \/ Fedora\nsudo dnf install git<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u56db\u3001\u5b89\u88c5ripgrep<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># macOS\nbrew install ripgrep\n\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u5b89\u88c5Homebrew\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Homebrew\n\/bin\/bash -c \"$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)\"\n\n# Windows\uff08\u4f7f\u7528winget\uff09\nwinget install BurntSushi.ripgrep.MSVC\n\n# Linux\uff08Ubuntu \/ Debian\uff09\nsudo apt install ripgrep<\/code><\/pre>\n\n\n\n<p class=\"has-medium-font-size wp-block-paragraph\"><strong>\u4e94\u3001\u5b89\u88c5Xcode Command Line Tools<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Xcode Command Line Tools\u5305\u542b\u4e86git\u3001gcc\u3001make\u3001clang\u7b49\u5f00\u53d1\u8005\u5fc5\u5907\u5de5\u5177\u3002macOS\u7528\u6237\u5f3a\u70c8\u5efa\u8bae\u5b89\u88c5\u2014\u2014\u4e0d\u4ec5 Claude Code\u9700\u8981\uff0c\u540e\u7eed\u5b89\u88c5\u90e8\u5206MCP Server\uff08\u9700\u8981\u7f16\u8bd1\u539f\u751f Node.js\u6a21\u5757\uff09\u65f6\u4e5f\u4f1a\u4f9d\u8d56\u5b83\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\">\u6267\u884c\u540e\u7cfb\u7edf\u4f1a\u5f39\u51fa\u5b89\u88c5\u786e\u8ba4\u7a97\u53e3\uff0c\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u5e76\u7b49\u5f85\u5b8c\u6210\uff08\u7ea65-10\u5206\u949f\uff0c\u4e0b\u8f7d\u7ea61.5 GB\uff09\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"398\" src=\"https:\/\/www.aiqqc.com\/wp-content\/uploads\/2026\/08\/xcode-tool.jpg\" alt=\"\" class=\"wp-image-180\" style=\"aspect-ratio:2.2613889706810246;width:489px;height:auto\" srcset=\"https:\/\/www.aiqqc.com\/wp-content\/uploads\/2026\/08\/xcode-tool.jpg 900w, https:\/\/www.aiqqc.com\/wp-content\/uploads\/2026\/08\/xcode-tool-300x133.jpg 300w, https:\/\/www.aiqqc.com\/wp-content\/uploads\/2026\/08\/xcode-tool-768x340.jpg 768w\" sizes=\"auto, (max-width: 900px) 100vw, 900px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u30013\u4e2a\u91cd\u8981\u7684\u7cfb\u7edf\u5de5\u5177 Claude Code\u672c\u4f53\u5b89\u88c5\u5b8c\u6210\uff0c\u5e76\u4e0d\u610f\u5473\u7740\u6240\u6709\u529f\u80fd\u90fd\u80fd\u6b63\u5e38\u5de5\u4f5c\u3002Clau [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15],"tags":[],"class_list":["post-170","post","type-post","status-publish","format-standard","hentry","category-3-"],"_links":{"self":[{"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/posts\/170","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/comments?post=170"}],"version-history":[{"count":8,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions"}],"predecessor-version":[{"id":184,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/posts\/170\/revisions\/184"}],"wp:attachment":[{"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/media?parent=170"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/categories?post=170"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aiqqc.com\/index.php\/wp-json\/wp\/v2\/tags?post=170"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}