मैंने एक HTTP कनेक्ट प्रॉक्ट के माध्यम से Git प्रोटोकॉल का उपयोग करने के लिए Socat को स्थापित किया, फिर मैं gitproxyआपकी बिन निर्देशिका में एक स्क्रिप्ट बनाता हूं ।
#!/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 config --global --unset http.proxyऔर सब कुछ ठीक है