GIT download through proxy

How to clone GIT's code through a proxy

If there is an error with clone,
D:\workspace>git clone git://git.openwrt.org/openwrt.git
Cloning into 'openwrt'...
fatal: unable to connect to git.openwrt. org:
git.openwrt.org[0: 217.115.15.20]: errno=No error

If your network requires proxy access to the network, you can set the git proxy server
git config --global http.proxy http://10.41. 255.xxx:8080

git clone http://git.openwrt.org/openwrt.git Note that

the prefix should be changed to HTTP (originally GIT)

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326713053&siteId=291194637
Recommended