{"id":19160,"date":"2024-11-19T12:38:42","date_gmt":"2024-11-19T04:38:42","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19160\/"},"modified":"2024-11-19T12:38:42","modified_gmt":"2024-11-19T04:38:42","slug":"%e5%a6%82%e4%bd%95%e8%a7%a3%e5%86%b3-git-bash-%e4%b9%b1%e7%a0%81%e9%97%ae%e9%a2%98","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19160\/","title":{"rendered":"\u5982\u4f55\u89e3\u51b3 Git Bash \u4e71\u7801\u95ee\u9898"},"content":{"rendered":"<p>\u5728\u4f7f\u7528 git bash \u547d\u4ee4\u884c\u65f6\uff0c\u6709\u65f6\u4f1a\u9047\u5230\u4e71\u7801\u7684\u60c5\u51b5\uff0c\u7279\u522b\u662f\u5728 windows \u4e0a\u3002\u8fd9\u662f\u56e0\u4e3a git bash \u9ed8\u8ba4\u4f7f\u7528\u4e86 utf-8 \u7f16\u7801\uff0c\u5728\u4e00\u4e9b\u7cfb\u7edf\u73af\u5883\u4e0b\u53ef\u80fd\u4f1a\u8ddf\u5176\u4ed6\u5b57\u7b26\u96c6\u53d1\u751f\u51b2\u7a81\uff0c\u4ece\u800c\u5bfc\u81f4\u4e71\u7801\u95ee\u9898\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u89e3\u51b3 git bash \u4e71\u7801\u95ee\u9898\u3002<\/p>\n<p>\u4e00\u3001\u68c0\u67e5 Git Bash \u7f16\u7801\u8bbe\u7f6e<\/p>\n<p>\u9996\u5148\u8981\u68c0\u67e5\u4e00\u4e0b\u5f53\u524d Git Bash \u7684\u7f16\u7801\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00 Git Bash\u3002<\/li>\n<li>\u70b9\u51fb\u7a97\u53e3\u5de6\u4e0a\u89d2\u7684\u56fe\u6807\uff0c\u9009\u62e9 &#8220;Options&#8221;\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u680f\u9009\u62e9 &#8220;Text&#8221;\u3002<\/li>\n<li>\u786e\u8ba4 &#8220;Locale&#8221; \u548c &#8220;Character set&#8221; \u662f\u5426\u90fd\u8bbe\u7f6e\u4e3a UTF-8\u3002<\/li>\n<\/ol>\n<p>\u5982\u679c\u4e0a\u8ff0\u8bbe\u7f6e\u90fd\u6b63\u786e\uff0c\u90a3\u4e48\u5f88\u53ef\u80fd\u662f\u7cfb\u7edf\u73af\u5883\u7684\u95ee\u9898\u5bfc\u81f4\u7684\u4e71\u7801\u3002<\/p>\n<p>\u4e8c\u3001\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf<\/p>\n<p>\u6709\u65f6\u5019\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e\u4e5f\u4f1a\u5f71\u54cd Git Bash \u7684\u663e\u793a\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u53f3\u952e\u70b9\u51fb &#8220;My Computer&#8221;\uff0c\u9009\u62e9 &#8220;Properties&#8221;\u3002<\/li>\n<li>\u70b9\u51fb &#8220;Advanced&#8221;\uff0c\u518d\u70b9\u51fb &#8220;Environment Variables&#8221;\u3002<\/li>\n<li>\u627e\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u7684 &#8220;LANG&#8221; \u548c &#8220;LC_ALL&#8221;\uff08\u5982\u679c\u6ca1\u6709\u5219\u70b9\u51fb &#8220;New&#8221; \u6dfb\u52a0\uff09\uff0c\u5c06\u503c\u8bbe\u7f6e\u4e3a &#8220;en_US.UTF-8&#8243;\u3002<\/li>\n<li>\u91cd\u65b0\u542f\u52a8 Git Bash\uff0c\u67e5\u770b\u95ee\u9898\u662f\u5426\u89e3\u51b3\u3002<\/li>\n<\/ol>\n<p>\u5982\u679c\u8fd8\u662f\u51fa\u73b0\u4e71\u7801\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4e0b\u9762\u7684\u4fee\u6539\u3002<\/p>\n<p>\u4e09\u3001\u4fee\u6539 Git Bash \u5b57\u4f53\u548c\u5b57\u53f7<\/p>\n<p>\u6709\u65f6\u5019 Git Bash \u7684\u5b57\u4f53\u548c\u5b57\u53f7\u7684\u8bbe\u7f6e\u4e5f\u4f1a\u5bfc\u81f4\u4e71\u7801\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00 Git Bash\u3002<\/li>\n<li>\u70b9\u51fb\u7a97\u53e3\u5de6\u4e0a\u89d2\u7684\u56fe\u6807\uff0c\u9009\u62e9 &#8220;Options&#8221;\u3002<\/li>\n<li>\u5728\u5de6\u4fa7\u680f\u9009\u62e9 &#8220;Text&#8221;\u3002<\/li>\n<li>\u5c1d\u8bd5\u66f4\u6362\u4e0d\u540c\u7684\u5b57\u4f53\u548c\u8c03\u6574\u5b57\u53f7\uff0c\u6700\u597d\u9009\u62e9\u7b49\u5bbd\u5b57\u4f53\u3002<\/li>\n<\/ol>\n<p>\u56db\u3001\u91cd\u88c5 Git Bash<\/p>\n<p>\u5982\u679c\u4ee5\u4e0a\u65b9\u6cd5\u90fd\u65e0\u6cd5\u89e3\u51b3\u95ee\u9898\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u91cd\u65b0\u5b89\u88c5 Git Bash\u3002\u5b89\u88c5\u65f6\u9009\u62e9 UTF-8 \u7f16\u7801\uff0c\u5e76\u4e14\u6ce8\u610f\u52fe\u9009 &#8220;Use Windows&#8217; default console window&#8221;\uff0c\u8fd9\u6837\u53ef\u4ee5\u786e\u4fdd Git Bash \u7684\u63a7\u5236\u53f0\u4e0e Windows \u7cfb\u7edf\u63a7\u5236\u53f0\u540c\u6b65\u3002<\/p>\n<p>\u4e94\u3001\u603b\u7ed3<\/p>\n<p>\u4ee5\u4e0a\u662f\u89e3\u51b3 Git Bash \u4e71\u7801\u95ee\u9898\u7684\u4e00\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u9010\u4e00\u5c1d\u8bd5\u3002\u5982\u679c\u8fd8\u662f\u65e0\u6cd5\u89e3\u51b3\uff0c\u53ef\u80fd\u9700\u8981\u8fdb\u4e00\u6b65\u6392\u67e5\u7cfb\u7edf\u73af\u5883\u95ee\u9898\uff0c\u6216\u8005\u8003\u8651\u4f7f\u7528\u5176\u4ed6\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u89e3\u51b3 Git Bash \u4e71\u7801\u95ee\u9898\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>\u5728\u4f7f\u7528 git bash \u547d\u4ee4\u884c\u65f6\uff0c\u6709\u65f6\u4f1a\u9047\u5230\u4e71\u7801\u7684\u60c5\u51b5\uff0c\u7279\u522b\u662f\u5728 windows \u4e0a\u3002\u8fd9\u662f\u56e0\u4e3a git bash \u9ed8\u8ba4\u4f7f\u7528\u4e86 utf-8 \u7f16\u7801\uff0c\u5728\u4e00\u4e9b\u7cfb\u7edf\u73af\u5883\u4e0b\u53ef\u80fd\u4f1a\u8ddf\u5176\u4ed6\u5b57\u7b26\u96c6\u53d1\u751f\u51b2\u7a81\uff0c\u4ece\u800c\u5bfc\u81f4\u4e71\u7801\u95ee\u9898\u3002\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u89e3\u51b3 git bash \u4e71\u7801\u95ee\u9898\u3002 \u4e00\u3001\u68c0\u67e5 Git Bash \u7f16\u7801\u8bbe\u7f6e \u9996\u5148\u8981\u68c0\u67e5\u4e00\u4e0b\u5f53\u524d Git Bash \u7684\u7f16\u7801\u8bbe\u7f6e\uff0c\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u6b65\u9aa4\uff1a \u6253\u5f00 Git Bash\u3002 \u70b9\u51fb\u7a97\u53e3\u5de6\u4e0a\u89d2\u7684\u56fe\u6807\uff0c\u9009\u62e9 &#8220;Options&#8221;\u3002 \u5728\u5de6\u4fa7\u680f\u9009\u62e9 &#8220;Text&#8221;\u3002 \u786e\u8ba4 &#8220;Locale&#8221; \u548c &#8220;Character set&#8221; \u662f\u5426\u90fd\u8bbe\u7f6e\u4e3a UTF-8\u3002 \u5982\u679c\u4e0a\u8ff0\u8bbe\u7f6e\u90fd\u6b63\u786e\uff0c\u90a3\u4e48\u5f88\u53ef\u80fd\u662f\u7cfb\u7edf\u73af\u5883\u7684\u95ee\u9898\u5bfc\u81f4\u7684\u4e71\u7801\u3002 \u4e8c\u3001\u4fee\u6539\u7cfb\u7edf\u73af\u5883\u53d8\u91cf \u6709\u65f6\u5019\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u7684\u8bbe\u7f6e\u4e5f\u4f1a\u5f71\u54cd Git Bash \u7684\u663e\u793a\uff0c\u6211\u4eec\u9700\u8981\u8fdb\u884c\u5982\u4e0b\u64cd\u4f5c\uff1a \u53f3\u952e\u70b9\u51fb &#8220;My Computer&#8221;\uff0c\u9009\u62e9 &#8220;Properties&#8221;\u3002 \u70b9\u51fb &#8220;Advanced&#8221;\uff0c\u518d\u70b9\u51fb &#8220;Environment Variables&#8221;\u3002 \u627e\u5230\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u7684 &#8220;LANG&#8221; \u548c &#8220;LC_ALL&#8221;\uff08\u5982\u679c\u6ca1\u6709\u5219\u70b9\u51fb &#8220;New&#8221; [&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-19160","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19160","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=19160"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19160\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}