I went through this link and set proxy and port in gitproxy script as our college proxy-server and port .
My gitproxy script looks like
#!/bin/sh # Use socat to proxy git through an HTTP CONNECT firewall. # Useful if you are trying to clone git:// from inside a company. # Requires that the proxy allows CONNECT to port 9418. # # Save this file as gitproxy somewhere in your path (e.g., ~/bin) and then run # chmod +x gitproxy # git config --global core.gitproxy gitproxy # # More details at http://tinyurl.com/8xvpny
# Configuration. Common proxy ports are 3128, 8123, 8000. _proxy=172.16.1.11 _proxyport=3128
exec socat STDIO PROXY:$_proxy:$1:$2,proxyport=$_proxyport
Fig:2. if you are under proxy server then go to settings->preferences and here you find network set-up under networks and fill the requirements.
Fig:3. If you want to save your logs then just check on enable logging and your logs are saved in '~/.xchat/xchatlogs'.