Git代理设置
git config --global http.proxy http://ipAddress:port
git config --global https.proxy https://ipAddress:port
Git用户信息设置
git config --global user.name “username”
git config --global user.email "xxx@xxx.xxx"
Repo代理设置
export http_proxy=http://ipAddress:port
export https_proxy=https://ipAddress:port
另外,Ubuntu的图形界面进入设置应用也可以设置代理(对其浏览器等应用有效),但这个地方的设置对命令行不起作用,需要用上面的命令设置才生效。