Skip to content

常用命令 #2

@guotao

Description

@guotao

How to: go get through socks5 proxy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions