windows平台下使用git获取一些资源时,会遇到某些需要配置端口代理的问题,以下是配置/查询/取消git代理的命令。
命令运行方式:win+R运行控制台直接输入命令即可。
为git配置代理命令:
git config --global http.proxy "localhost:8081
git config --global https.proxy "localhost:8081"
查询是否使用代理命令:
git config --global http.proxy
git config --global https.proxy
取消代理命令:
git config --global --unset http.proxy
git config --global --unset https.proxy