Skip to content

Instantly share code, notes, and snippets.

@goncha
Last active January 20, 2020 17:20
Show Gist options
  • Save goncha/4591538 to your computer and use it in GitHub Desktop.
Save goncha/4591538 to your computer and use it in GitHub Desktop.
Git and socks5 proxy
gang@debian:~$ sudo apt-get install netcat-openbsd
gang@debian:~$ cat /usr/local/bin/git-proxy-wrapper
#!/bin/bash
nc -xlocalhost:1080 -X5 $*
gang@debian:~$ export GIT_PROXY_COMMAND=/usr/local/bin/git-proxy-wrapper
@coin8086
Copy link

那个GIT_PROXY_COMMAND基本没有用,完整、实用的设置看这里
https://gist.github.com/coin8086/7228b177221f6db913933021ac33bb92

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