Install tsocks sudo apt-get install tsocks Edit /etc/tsocks.conf sudo vim /etc/tsocks.conf Sample configuration for CSE at CUHK:
1 2 3 4 5 |
local = 137.189.88.0/255.255.252.0 # CSE domains local = 127.0.0.0/255.255.255.0 # localhost server = 137.189.90.232 # socks.cse.cuhk.edu.hk server_type = 5 server_port = 1080 |
Done. Use it with tsocks git pull