{"id":21478,"date":"2024-11-19T14:14:58","date_gmt":"2024-11-19T06:14:58","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21478\/"},"modified":"2024-11-19T14:14:58","modified_gmt":"2024-11-19T06:14:58","slug":"git%e4%b8%8b%e8%bd%bd%e4%b8%8d%e5%8a%a8%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21478\/","title":{"rendered":"git\u4e0b\u8f7d\u4e0d\u52a8\u600e\u4e48\u529e"},"content":{"rendered":"<blockquote><p>\n  \u89e3\u51b3 git \u4e0b\u8f7d\u901f\u5ea6\u6162\u65f6\u53ef\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\uff0c\u5c1d\u8bd5\u5207\u6362\u8fde\u63a5\u65b9\u5f0f\u3002\u4f18\u5316 git \u914d\u7f6e\uff1a\u589e\u52a0 post \u7f13\u51b2\u533a\u5927\u5c0f\uff08git config &#8211;global http.postbuffer 524288000\uff09\u3001\u964d\u4f4e\u4f4e\u901f\u9650\u5236\uff08git config &#8211;global http.lowspeedlimit 1000\uff09\u3002\u4f7f\u7528 git \u4ee3\u7406\uff08\u5982 git-proxy \u6216 git-lfs-proxy\uff09\u3002\u5c1d\u8bd5\u4f7f\u7528\u4e0d\u540c\u7684 git \u5ba2\u6237\u7aef\uff08\u5982 sourcetree \u6216 github desktop\uff09\u3002\u68c0\u67e5\u9632\u706b\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053018220026149.jpg\" class=\"aligncenter\" title=\"git\u4e0b\u8f7d\u4e0d\u52a8\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"git\u4e0b\u8f7d\u4e0d\u52a8\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u89e3\u51b3 Git \u4e0b\u8f7d\u901f\u5ea6\u6162\u7684\u95ee\u9898<\/strong><\/p>\n<p>\u5f53 Git \u4e0b\u8f7d\u901f\u5ea6\u53d8\u6162\u65f6\uff0c\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u6b65\u9aa4\u89e3\u51b3\uff1a<\/p>\n<p><strong>1. \u68c0\u67e5\u7f51\u7edc\u8fde\u63a5<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u8ba1\u7b97\u673a\u5df2\u8fde\u63a5\u5230\u7a33\u5b9a\u7684\u4e92\u8054\u7f51\u3002<\/li>\n<li>\u5c1d\u8bd5\u66f4\u6539\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f\uff0c\u4f8b\u5982\u4ece Wi-Fi \u5207\u6362\u5230\u6709\u7ebf\u8fde\u63a5\u6216\u79fb\u52a8\u70ed\u70b9\u3002<\/li>\n<\/ul>\n<p><strong>2. \u4f18\u5316 Git \u914d\u7f6e<\/strong><\/p>\n<ul>\n<li>\u8fd0\u884c  config &#8211;global http.postBuffer 524288000 \u547d\u4ee4\uff0c\u4ee5\u589e\u52a0 Git POST \u7f13\u51b2\u533a\u7684\u5927\u5c0f\uff0c\u8fd9\u5bf9\u4e8e\u4e0b\u8f7d\u5927\u578b\u6587\u4ef6\u5f88\u6709\u5e2e\u52a9\u3002<\/li>\n<li>\u8fd0\u884c git config &#8211;global http.lowSpeedLimit 1000 \u547d\u4ee4\uff0c\u4ee5\u964d\u4f4e Git \u8ba4\u4e3a\u7f51\u7edc\u901f\u5ea6\u6162\u7684\u9600\u503c\u3002<\/li>\n<\/ul>\n<p><strong>3. \u4f7f\u7528 Git \u4ee3\u7406<\/strong><\/p>\n<ul>\n<li>\u4f7f\u7528 Git \u4ee3\u7406\u53ef\u4ee5\u5e2e\u52a9\u6539\u5584\u4e0b\u8f7d\u901f\u5ea6\u3002<\/li>\n<li>\n<p>\u63a8\u8350\u7684 Git \u4ee3\u7406\u6709\uff1a<\/p>\n<ul>\n<li>[git-proxy](https:\/\/github.com\/tj\/git-proxy)<\/li>\n<li>[git-lfs-proxy](https:\/\/github.com\/git-lfs\/git-lfs-proxy)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>4. \u5c1d\u8bd5\u4e00\u4e2a\u4e0d\u540c\u7684 Git \u5ba2\u6237\u7aef<\/strong><\/p>\n<ul>\n<li>\u4e0d\u540c\u7684 Git \u5ba2\u6237\u7aef\u53ef\u80fd\u5177\u6709\u4e0d\u540c\u7684\u4e0b\u8f7d\u5f15\u64ce\u3002<\/li>\n<li>\u5c1d\u8bd5\u4f7f\u7528 [Sourcetree](https:\/\/www.sourcetreeapp.com\/) \u6216 [Github Desktop](https:\/\/desktop.github.com\/) \u7b49\u66ff\u4ee3 Git \u5ba2\u6237\u7aef\u3002<\/li>\n<\/ul>\n<p><strong>5. \u68c0\u67e5\u9632\u706b\u5899\u548c\u6740\u6bd2\u8f6f\u4ef6<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u9632\u706b\u5899\u548c\u6740\u6bd2\u8f6f\u4ef6\u6ca1\u6709\u963b\u6b62 Git \u8bbf\u95ee\u4e92\u8054\u7f51\u3002<\/li>\n<li>\u5728\u9632\u706b\u5899\u6216\u6740\u6bd2\u8f6f\u4ef6\u4e2d\u6dfb\u52a0 Git \u5230\u767d\u540d\u5355\u3002<\/li>\n<\/ul>\n<p><strong>6. \u51cf\u5c11\u4e0b\u8f7d\u6587\u4ef6\u7684\u6570\u91cf<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u4e00\u6b21\u4e0b\u8f7d\u5927\u91cf\u6587\u4ef6\uff0cGit \u4e0b\u8f7d\u901f\u5ea6\u53ef\u80fd\u4f1a\u53d8\u6162\u3002<\/li>\n<li>\u5c1d\u8bd5\u5c06\u4e0b\u8f7d\u7684\u6587\u4ef6\u6570\u91cf\u51cf\u5c11\u5230\u6700\u5c11\u3002<\/li>\n<\/ul>\n<p><strong>7. \u4f7f\u7528 Git LFS<\/strong><\/p>\n<ul>\n<li>Git LFS\uff08\u5927\u578b\u6587\u4ef6\u5b58\u50a8\uff09\u662f\u4e00\u79cd\u9488\u5bf9\u5927\u578b\u6587\u4ef6\u4e0b\u8f7d\u8fdb\u884c\u4f18\u5316\u7684 Git \u6269\u5c55\u3002<\/li>\n<li>\u4f7f\u7528 Git LFS \u53ef\u4ee5\u5c06\u5927\u578b\u6587\u4ef6\u5b58\u50a8\u5728\u8fdc\u7a0b\u670d\u52a1\u5668\u4e0a\uff0c\u5e76\u53ea\u4e0b\u8f7d\u5fc5\u8981\u7684\u5143\u6570\u636e\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u4e0b\u8f7d\u4e0d\u52a8\u600e\u4e48\u529e\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>\u89e3\u51b3 git \u4e0b\u8f7d\u901f\u5ea6\u6162\u65f6\u53ef\u91c7\u53d6\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u68c0\u67e5\u7f51\u7edc\u8fde\u63a5\uff0c\u5c1d\u8bd5\u5207\u6362\u8fde\u63a5\u65b9\u5f0f\u3002\u4f18\u5316 git \u914d\u7f6e\uff1a\u589e\u52a0 post \u7f13\u51b2\u533a\u5927\u5c0f\uff08git config &#8211;global http.postbuffer 524288000\uff09\u3001\u964d\u4f4e\u4f4e\u901f\u9650\u5236\uff08git config &#8211;global http.lowspeedlimit 1000\uff09\u3002\u4f7f\u7528 git \u4ee3\u7406\uff08\u5982 git-proxy \u6216 git-lfs-proxy\uff09\u3002\u5c1d\u8bd5\u4f7f\u7528\u4e0d\u540c\u7684 git \u5ba2\u6237\u7aef\uff08\u5982 sourcetree \u6216 github desktop\uff09\u3002\u68c0\u67e5\u9632\u706b \u89e3\u51b3 Git \u4e0b\u8f7d\u901f\u5ea6\u6162\u7684\u95ee\u9898 \u5f53 Git \u4e0b\u8f7d\u901f\u5ea6\u53d8\u6162\u65f6\uff0c\u53ef\u4ee5\u91c7\u7528\u4ee5\u4e0b\u6b65\u9aa4\u89e3\u51b3\uff1a 1. \u68c0\u67e5\u7f51\u7edc\u8fde\u63a5 \u786e\u4fdd\u8ba1\u7b97\u673a\u5df2\u8fde\u63a5\u5230\u7a33\u5b9a\u7684\u4e92\u8054\u7f51\u3002 \u5c1d\u8bd5\u66f4\u6539\u7f51\u7edc\u8fde\u63a5\u65b9\u5f0f\uff0c\u4f8b\u5982\u4ece Wi-Fi \u5207\u6362\u5230\u6709\u7ebf\u8fde\u63a5\u6216\u79fb\u52a8\u70ed\u70b9\u3002 2. \u4f18\u5316 Git \u914d\u7f6e \u8fd0\u884c config &#8211;global http.postBuffer 524288000 \u547d\u4ee4\uff0c\u4ee5\u589e\u52a0 Git POST \u7f13\u51b2\u533a\u7684\u5927\u5c0f\uff0c\u8fd9\u5bf9\u4e8e\u4e0b\u8f7d\u5927\u578b\u6587\u4ef6\u5f88\u6709\u5e2e\u52a9\u3002 \u8fd0\u884c git config &#8211;global [&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-21478","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21478","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=21478"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21478\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21478"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21478"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21478"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}