Sometimes, you must use a proxy to access the external network. In this case, you need to use git to download the code. What should I do? The answer is tsocks.
Http://sourceforge.net/projects/tsocks/files/tsocks/1.8%20beta%205/:
Tar xzvfTsockS-1.8beta5.tar.gz
CDTsockS-1.8
./Configure-Prefix =/usr; Make; make install
The next step is to modify the/etc/tsocks. conf configuration file and configure it according to the actual network conditions.
Server =... # Your local proxy server
Server_type = 5 # socks version, use 5 as default
Server_port = 1080 # socks proxy Port
Local = 10.0.0.0/255.0.0.0 # internal network; will not use proxy when accessing this Subnet
After the configuration, you can use git to download the file:
Tsocks git clone git: // gitorious.org/vaapi/mplayer.git mplayer
However, if you use HTTP, you only need to configure the proxy before downloading it.
Export http_proxy = server_address: server_port
Git clone http://gitorious.org/vaapi/mplayer.git mplayer