Install tsocks sudo apt-get install tsocks Edit /etc/tsocks.conf sudo vim /etc/tsocks.conf Sample configuration for CSE at CUHK:

Done. Use it with tsocks git pull