{"id":46,"date":"2018-05-23T08:00:00","date_gmt":"2018-05-23T00:00:00","guid":{"rendered":"https:\/\/liqimore.com\/2018\/setting-git-proxy\/"},"modified":"2022-03-21T03:03:40","modified_gmt":"2022-03-20T19:03:40","slug":"setting-git-proxy","status":"publish","type":"post","link":"https:\/\/liqimore.com\/2018\/setting-git-proxy\/","title":{"rendered":"\u8bbe\u7f6egit\u8d70ssr(socks5)\u4ee3\u7406"},"content":{"rendered":"<ul>\n<li>Kramdown table of contents<br \/>\n{:toc .toc}<\/li>\n<\/ul>\n<h2 id=\"Setting-proxy\"><a href=\"#Setting-proxy\" class=\"headerlink\" title=\"Setting proxy\"><\/a>Setting proxy<\/h2>\n<p>if socks5(SSR)<br \/>\nfirst, you need to know you local socks5 proxy ip address and port.<br \/>\neg. 127.0.0.1 port 1086<br \/>\nthen use this command to set proxy<\/p>\n<div class=\"code-wrapper\">\n<pre class=\"line-numbers language-none\"><code class=\"language-none\">git config --global http.proxy socks5h:\/\/127.0.0.1:1080<span aria-hidden=\"true\" class=\"line-numbers-rows\"><span><\/span><\/span><\/code><\/pre>\n<\/div>\n<p>if http\/https<br \/>\nuse this command:<\/p>\n<div class=\"code-wrapper\">\n<pre class=\"line-numbers language-none\"><code class=\"language-none\">git config --global https.proxy http:\/\/127.0.0.1:1080git config --global https.proxy https:\/\/127.0.0.1:1080<span aria-hidden=\"true\" class=\"line-numbers-rows\"><span><\/span><span><\/span><span><\/span><\/span><\/code><\/pre>\n<\/div>\n<h2 id=\"To-unset-proxys\"><a href=\"#To-unset-proxys\" class=\"headerlink\" title=\"To unset proxys\"><\/a>To unset proxys<\/h2>\n<div class=\"code-wrapper\">\n<pre class=\"line-numbers language-none\"><code class=\"language-none\">git config --global --unset http.proxygit config --global --unset https.proxy<span aria-hidden=\"true\" class=\"line-numbers-rows\"><span><\/span><span><\/span><span><\/span><\/span><\/code><\/pre>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Kramdown table of contents {:toc .toc} Setting proxy if [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-logged"],"_links":{"self":[{"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":0,"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"wp:attachment":[{"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/liqimore.com\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}