Skip to content

Instantly share code, notes, and snippets.

@guotao
Created March 18, 2019 11:35
Show Gist options
  • Save guotao/366e9bf0f4f0f9f6e8acc6e5a133c4cb to your computer and use it in GitHub Desktop.
Save guotao/366e9bf0f4f0f9f6e8acc6e5a133c4cb to your computer and use it in GitHub Desktop.
常用命令
Step 1: set git through socks5 proxy:
```git config --global http.proxy socks5://127.0.0.1:1080```
Step 2: go get via socks5 proxy:
```http_proxy=socks5://127.0.0.1:1080 go get github.com/mattn/go-sqlite3```
Recover git global config:
```git config --global --unset http.proxy```
@guotao
Copy link
Author

guotao commented Mar 18, 2019

Step 1: set git through socks5 proxy:
git config --global http.proxy socks5://127.0.0.1:1080
Step 2: go get via socks5 proxy:
http_proxy=socks5://127.0.0.1:1080 go get github.com/mattn/go-sqlite3
Recover git global config:
git config --global --unset http.proxy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment