{"id":438,"date":"2023-02-25T12:32:45","date_gmt":"2023-02-25T04:32:45","guid":{"rendered":"https:\/\/www.appblog.cn\/?p=438"},"modified":"2023-04-29T21:04:50","modified_gmt":"2023-04-29T13:04:50","slug":"git-set-and-cancel-proxy","status":"publish","type":"post","link":"https:\/\/www.appblog.cn\/index.php\/2023\/02\/25\/git-set-and-cancel-proxy\/","title":{"rendered":"Git\u8bbe\u7f6e\u548c\u53d6\u6d88\u4ee3\u7406"},"content":{"rendered":"<p>\u672c\u5730\u5f00\u542fVPN\u540e\uff0cGIt\u4e5f\u9700\u8981\u8bbe\u7f6e\u4ee3\u7406\uff0c\u624d\u80fd\u6b63\u5e38\u7565\u8fc7GFW\uff0c\u8bbf\u95eegoogle code\u7b49\u7f51\u7ad9<\/p>\n<p>\uff081\uff09\u8bbe\u7f6e\u4ee3\u7406<\/p>\n<ul>\n<li>SSR Client<\/li>\n<\/ul>\n<p><!-- more --><\/p>\n<pre><code>git config --global http.proxy http:\/\/127.0.0.1:1080\ngit config --global https.proxy https:\/\/127.0.0.1:1080\ngit config --global http.proxy &#039;socks5:\/\/127.0.0.1:1080&#039; \ngit config --global https.proxy &#039;socks5:\/\/127.0.0.1:1080&#039;<\/code><\/pre>\n<ul>\n<li>Privoxy<\/li>\n<\/ul>\n<pre><code>git config --global http.proxy http:\/\/192.168.16.28:8118\ngit config --global https.proxy https:\/\/192.168.16.28:8118<\/code><\/pre>\n<p>\u6216\u8005\u7f16\u8f91\u7528\u6237\u76ee\u5f55\u4e0b\u7684<code>~\/.gitconfig<\/code><\/p>\n<pre><code>[http]\nproxy = http:\/\/username:password@host:port\n[https]\nproxy = http:\/\/username:password@host:port<\/code><\/pre>\n<p>\uff082\uff09\u53d6\u6d88\u4ee3\u7406<\/p>\n<pre><code>$ git config --global --unset http.proxy\n$ git config --global --unset https.proxy<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u5730\u5f00\u542fVPN\u540e\uff0cGIt\u4e5f\u9700\u8981\u8bbe\u7f6e\u4ee3\u7406\uff0c\u624d\u80fd\u6b63\u5e38\u7565\u8fc7GFW\uff0c\u8bbf\u95eegoogle code\u7b49\u7f51\u7ad9 \uff081\uff09\u8bbe\u7f6e\u4ee3\u7406  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[97],"tags":[99,142],"class_list":["post-438","post","type-post","status-publish","format-standard","hentry","category-tools-skills","tag-git","tag-142"],"_links":{"self":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/comments?post=438"}],"version-history":[{"count":0,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/posts\/438\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/media?parent=438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/categories?post=438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appblog.cn\/index.php\/wp-json\/wp\/v2\/tags?post=438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}