{"id":19122,"date":"2024-11-19T09:00:38","date_gmt":"2024-11-19T01:00:38","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19122\/"},"modified":"2024-11-19T09:00:38","modified_gmt":"2024-11-19T01:00:38","slug":"%e4%b8%80%e6%96%87%e8%af%a6%e8%a7%a3mac-git-%e5%ae%89%e8%a3%85%e8%b7%af%e5%be%84","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19122\/","title":{"rendered":"\u4e00\u6587\u8be6\u89e3Mac Git \u5b89\u88c5\u8def\u5f84"},"content":{"rendered":"<p>git \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5f00\u6e90\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u7a0b\u5e8f\u5458\u65b9\u4fbf\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002mac \u4f5c\u4e3a\u4e00\u6b3e\u975e\u5e38\u5f3a\u5927\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5df2\u7ecf\u5185\u7f6e\u4e86 git \u547d\u4ee4\uff0c\u4f46\u4f7f\u7528\u5185\u7f6e\u7684 git \u7248\u672c\u4e0d\u4e00\u5b9a\u80fd\u591f\u6ee1\u8db3\u6240\u6709\u7684\u9700\u6c42\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5728 mac \u4e0a\u624b\u52a8\u5b89\u88c5 git\u3002<\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u4e3a\u5927\u5bb6\u4ecb\u7ecd Mac Git \u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4ee5\u53ca\u5982\u4f55\u5728 Mac \u4e0a\u624b\u52a8\u5b89\u88c5 Git\u3002<\/p>\n<p>\u4e00\u3001Mac Git \u7684\u5b89\u88c5\u8def\u5f84<\/p>\n<p>\u5728 Mac \u4e0a\u5b89\u88c5 Git\uff0c\u4e00\u822c\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a\u7b2c\u4e00\u79cd\u662f\u4f7f\u7528\u5185\u7f6e\u7684 Git;\u7b2c\u4e8c\u79cd\u662f\u624b\u52a8\u5b89\u88c5 Git\u3002\u4f7f\u7528\u5185\u7f6e\u7684 Git\uff0c\u5b83\u662f\u5b89\u88c5\u5728\u7cfb\u7edf\u6587\u4ef6\u5939 \/usr\/bin \u4e0b\u7684\uff0c\u6267\u884c which git \u547d\u4ee4\uff0c\u5c31\u80fd\u770b\u5230 Git \u7684\u5b89\u88c5\u8def\u5f84\u4e86\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/example.com\/git_install_path.jpg\" class=\"aligncenter\" title=\"\u4e00\u6587\u8be6\u89e3Mac Git \u5b89\u88c5\u8def\u5f84\u63d2\u56fe\" alt=\"\u4e00\u6587\u8be6\u89e3Mac Git \u5b89\u88c5\u8def\u5f84\u63d2\u56fe\" \/><\/p>\n<p>\u4e8c\u3001\u624b\u52a8\u5b89\u88c5 Git<\/p>\n<p>\u5982\u679c\u60f3\u8981\u5b89\u88c5\u6700\u65b0\u7684 Git \u7248\u672c\uff0c\u5c31\u9700\u8981\u5728 Mac \u4e0a\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a<\/p>\n<ol>\n<li>\u4e0b\u8f7d Git \u5b89\u88c5\u6587\u4ef6<\/li>\n<\/ol>\n<p>\u8bbf\u95ee Git \u5b98\u7f51\uff1ahttps:\/\/git-scm.com\/\uff0c\u70b9\u51fb\u201cDownload for Mac\u201d\u6309\u94ae\uff0c\u4e0b\u8f7d Git \u7684 dmg \u5b89\u88c5\u6587\u4ef6\u3002<\/p>\n<ol>\n<li>\u6253\u5f00 dmg \u5b89\u88c5\u6587\u4ef6<\/li>\n<\/ol>\n<p>\u53cc\u51fb\u4e0b\u8f7d\u597d\u7684 dmg \u5b89\u88c5\u6587\u4ef6\uff0c\u6253\u5f00\u5b89\u88c5\u6587\u4ef6\u3002<\/p>\n<ol>\n<li>\u70b9\u51fb\u5b89\u88c5\u6309\u94ae<\/li>\n<\/ol>\n<p>\u5728\u6253\u5f00\u7684 dmg \u5b89\u88c5\u6587\u4ef6\u7a97\u53e3\u4e2d\uff0c\u53cc\u51fb\u201cGit\u201d\u56fe\u6807\uff0c\u8fdb\u5165 Git \u5b89\u88c5\u5411\u5bfc\u754c\u9762\u3002\u70b9\u51fb\u201cContinue\u201d\u6309\u94ae\uff0c\u8fdb\u5165\u4e0b\u4e00\u6b65\u3002<\/p>\n<ol>\n<li>\u540c\u610f\u534f\u8bae<\/li>\n<\/ol>\n<p>\u5728\u5b89\u88c5\u534f\u8bae\u754c\u9762\uff0c\u70b9\u51fb\u201cAgree\u201d\u6309\u94ae\uff0c\u540c\u610f\u5b89\u88c5\u534f\u8bae\u3002<\/p>\n<ol>\n<li>\u9009\u62e9\u5b89\u88c5\u8def\u5f84<\/li>\n<\/ol>\n<p>\u5728\u9009\u62e9\u5b89\u88c5\u8def\u5f84\u754c\u9762\uff0c\u53ef\u4ee5\u9009\u62e9 Git \u5b89\u88c5\u7684\u8def\u5f84\u3002\u9ed8\u8ba4\u7684\u5b89\u88c5\u8def\u5f84\u662f \/usr\/local\/git\uff0c\u4f46\u662f\u6211\u4eec\u53ef\u4ee5\u66f4\u6539\u5b89\u88c5\u8def\u5f84\u3002\u4fee\u6539\u5b8c\u6bd5\u540e\uff0c\u70b9\u51fb\u201cInstall\u201d\u6309\u94ae\uff0c\u5f00\u59cb\u5b89\u88c5 Git\u3002<\/p>\n<ol>\n<li>\u5b89\u88c5\u5b8c\u6210<\/li>\n<\/ol>\n<p>\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\uff0c\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201cClose\u201d\u6309\u94ae\uff0c\u9000\u51fa\u5b89\u88c5\u5411\u5bfc\u3002<\/p>\n<p>\u4e09\u3001\u9a8c\u8bc1\u5b89\u88c5\u662f\u5426\u6210\u529f<\/p>\n<p>\u624b\u52a8\u5b89\u88c5\u5b8c Git \u540e\uff0c\u6211\u4eec\u9700\u8981\u9a8c\u8bc1 Git \u7684\u5b89\u88c5\u662f\u5426\u6210\u529f\u3002\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165 git &#8211;version \u547d\u4ee4\uff0c\u5982\u679c\u80fd\u591f\u8f93\u51fa Git \u7684\u7248\u672c\u53f7\uff0c\u5219\u8bf4\u660e Git \u5df2\u7ecf\u5b89\u88c5\u6210\u529f\u4e86\u3002<\/p>\n<p>\u56db\u3001\u603b\u7ed3<\/p>\n<p>\u672c\u7bc7\u6587\u7ae0\u4e3b\u8981\u4ecb\u7ecd\u4e86 Mac Git \u7684\u5b89\u88c5\u8def\u5f84\u4ee5\u53ca\u5982\u4f55\u624b\u52a8\u5b89\u88c5 Git\u3002\u5728\u4f7f\u7528 Git \u8fdb\u884c\u9879\u76ee\u7ba1\u7406\u7684\u65f6\u5019\uff0c\u5982\u679c\u9700\u8981\u4f7f\u7528 Git \u7684\u67d0\u4e9b\u9ad8\u7ea7\u7279\u6027\uff0c\u90a3\u4e48\u624b\u52a8\u5b89\u88c5 Git \u5c31\u662f\u4e00\u4e2a\u4e0d\u9519\u7684\u9009\u62e9\u3002\u5927\u5bb6\u5728\u4f7f\u7528 Git \u65f6\uff0c\u4e5f\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\uff0c\u8fdb\u884c\u5408\u9002\u7684\u5b89\u88c5\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e00\u6587\u8be6\u89e3Mac Git \u5b89\u88c5\u8def\u5f84\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>git \u662f\u4e00\u4e2a\u975e\u5e38\u6d41\u884c\u7684\u5f00\u6e90\u7684\u7248\u672c\u63a7\u5236\u5de5\u5177\uff0c\u5b83\u80fd\u591f\u5e2e\u52a9\u7a0b\u5e8f\u5458\u65b9\u4fbf\u5730\u7ba1\u7406\u4ee3\u7801\uff0c\u8fdb\u884c\u7248\u672c\u63a7\u5236\u3002mac \u4f5c\u4e3a\u4e00\u6b3e\u975e\u5e38\u5f3a\u5927\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u5df2\u7ecf\u5185\u7f6e\u4e86 git \u547d\u4ee4\uff0c\u4f46\u4f7f\u7528\u5185\u7f6e\u7684 git \u7248\u672c\u4e0d\u4e00\u5b9a\u80fd\u591f\u6ee1\u8db3\u6240\u6709\u7684\u9700\u6c42\uff0c\u56e0\u6b64\u6211\u4eec\u9700\u8981\u5728 mac \u4e0a\u624b\u52a8\u5b89\u88c5 git\u3002 \u672c\u7bc7\u6587\u7ae0\u5c31\u6765\u4e3a\u5927\u5bb6\u4ecb\u7ecd Mac Git \u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4ee5\u53ca\u5982\u4f55\u5728 Mac \u4e0a\u624b\u52a8\u5b89\u88c5 Git\u3002 \u4e00\u3001Mac Git \u7684\u5b89\u88c5\u8def\u5f84 \u5728 Mac \u4e0a\u5b89\u88c5 Git\uff0c\u4e00\u822c\u6709\u4e24\u79cd\u65b9\u5f0f\uff1a\u7b2c\u4e00\u79cd\u662f\u4f7f\u7528\u5185\u7f6e\u7684 Git;\u7b2c\u4e8c\u79cd\u662f\u624b\u52a8\u5b89\u88c5 Git\u3002\u4f7f\u7528\u5185\u7f6e\u7684 Git\uff0c\u5b83\u662f\u5b89\u88c5\u5728\u7cfb\u7edf\u6587\u4ef6\u5939 \/usr\/bin \u4e0b\u7684\uff0c\u6267\u884c which git \u547d\u4ee4\uff0c\u5c31\u80fd\u770b\u5230 Git \u7684\u5b89\u88c5\u8def\u5f84\u4e86\u3002\u5982\u4e0b\u56fe\u6240\u793a\uff1a \u4e8c\u3001\u624b\u52a8\u5b89\u88c5 Git \u5982\u679c\u60f3\u8981\u5b89\u88c5\u6700\u65b0\u7684 Git \u7248\u672c\uff0c\u5c31\u9700\u8981\u5728 Mac \u4e0a\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\u3002\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b\uff1a \u4e0b\u8f7d Git \u5b89\u88c5\u6587\u4ef6 \u8bbf\u95ee Git \u5b98\u7f51\uff1ahttps:\/\/git-scm.com\/\uff0c\u70b9\u51fb\u201cDownload for Mac\u201d\u6309\u94ae\uff0c\u4e0b\u8f7d Git \u7684 dmg \u5b89\u88c5\u6587\u4ef6\u3002 \u6253\u5f00 dmg [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-19122","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=19122"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19122\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}