Git: Connect to a Remote via a SOCKS Proxy

  • This only works for HTTPS remotes, not SSH

  • Enable proxying

    $ git config --global http.proxy 'socks5://127.0.0.1:7070'
    
  • Disable proxying:

    $ git config --global --unset http.proxy
    
Edit