Skip to content

Instantly share code, notes, and snippets.

@donghaic
Forked from laispace/git 设置和取消代理
Created April 10, 2021 03:57
Show Gist options
  • Save donghaic/82bcda7ec028c8e487d0f84ad454a7d3 to your computer and use it in GitHub Desktop.
Save donghaic/82bcda7ec028c8e487d0f84ad454a7d3 to your computer and use it in GitHub Desktop.

Revisions

  1. @laispace laispace revised this gist Nov 28, 2014. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion git 设置和取消代理
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,7 @@ git config --global https.proxy https://127.0.0.1:1080

    git config --global --unset http.proxy

    git config --global --unset https.proxy
    git config --global --unset https.proxy


    npm config delete proxy
  2. @laispace laispace created this gist Nov 27, 2014.
    7 changes: 7 additions & 0 deletions git 设置和取消代理
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    git config --global https.proxy http://127.0.0.1:1080

    git config --global https.proxy https://127.0.0.1:1080

    git config --global --unset http.proxy

    git config --global --unset https.proxy