to access git:// under proxy
sudo apt install socat
add the following to .bashrc
sudo apt install socat
add the following to .bashrc
proxied_git ()
(
export GIT_PROXY_COMMAND=/tmp/gitproxy;
cat > $GIT_PROXY_COMMAND <<EOF
#!/bin/bash
/usr/bin/socat - PROXY:172.25.149.2:\$1:\$2,proxyport=3128
EOF
chmod +x $GIT_PROXY_COMMAND;
git "$@"
)
source: http://gitolite.com/git-over-proxy.html
No comments:
Post a Comment