Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
git ssh 代理设置

仅为 GitHub 设置代理

git 代理

设置 git config --global http. socks5://
设置完成后, ~/.gitconfig 文件中会增加以下条目:

[http ""]
    proxy = socks5://
ssh 代理

修改 ~/.ssh/config 文件

    User git
    ProxyCommand nc -v -x %h %p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment