Git & GitHub with 12VPX in WEB or XTLS mode
When you use our 12VPX app in XTLS or WEB mode (as opposed to OpenVPN mode) most command-line utilities, including Git, will not use the 12VPX automatically.
Proxy
Fortunately, when using 12VPX in XTLS or WEB mode, it runs a local proxy server that many command-line utilities can use. This proxy runs a 127.0.0.1:16005.
Git & GitHub
To instruction Git to use the local proxy provided by 12VPX you may issue this command:
git config --global http.proxy socks5://127.0.0.1:16005
git config --global https.proxy socks5://127.0.0.1:16005
To use Git without 12VPX, you will have to remove the proxy from its config again:
git config --global --unset http.proxy
git config --global --unset https.proxy
HTTP vs SOCKS
If you perfer a HTTP proxy instead of a SOCKS5 proxy, you can change the port from 16005 to 16006.