HTTP CONNECT 프록시를 통해 Git 프로토콜을 사용하기 위해 Socat을 설치 한 다음 gitproxybin 디렉터리에 호출되는 스크립트를 만듭니다 .
#!/bin/sh
# Use socat to proxy git through an HTTP CONNECT firewall.
# Useful if you are trying to clone git:// from inside a company.
# Requires that the proxy allows CONNECT to port 9418.
#
# Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run
# chmod +x gitproxy
# git config --global core.gitproxy gitproxy
#
# More details at https://www.emilsit.net/blog/archives/how-to-use-the-git-protocol-through-a-http-connect-proxy/
# Configuration. Common proxy ports are 3128, 8123, 8000.
_proxy=proxy.yourcompany.com
_proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport
그런 다음 git을 사용하도록 구성했습니다.
$ git config --global core.gitproxy gitproxy
이제 git을 기본 프록시 구성으로 재설정하고 싶습니다. 어떻게해야합니까?
git config --global --unset http.proxy하고 모든 것이 괜찮습니다