小编Ahm*_*fei的帖子

将git代理重置为默认配置

我安装Socat通过HTTP CONNECT代理使用Git协议,然后我创建一个gitproxy在bin目录中调用的脚本.

#!/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. …
Run Code Online (Sandbox Code Playgroud)

git

85
推荐指数
6
解决办法
13万
查看次数

标签 统计

git ×1