git 设置和取消代理
陈树树go · · 2808 次点击 · · 开始浏览学习golang,首先需要在 https://golang.org/dl/ 下载安装包,
如果打不开可以使用这个地址:https://golang.google.cn/dl/
在开发过程中,需要到github、goole code等网站,下载各种引入包,
这个时候需要安装git,下载地址为 https://git-scm.com/
科学上网后,GIt也需要设置,才能正常访问github、goole code等网站,go get 也会调用git
git代理设置如下(可复制):
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消git代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy
有疑问加站长微信联系(非本文作者)
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
关注微信- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码` - 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传
收入到我管理的专栏 新建专栏
学习golang,首先需要在 https://golang.org/dl/ 下载安装包,
如果打不开可以使用这个地址:https://golang.google.cn/dl/
在开发过程中,需要到github、goole code等网站,下载各种引入包,
这个时候需要安装git,下载地址为 https://git-scm.com/
科学上网后,GIt也需要设置,才能正常访问github、goole code等网站,go get 也会调用git
git代理设置如下(可复制):
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
取消git代理设置
git config --global --unset http.proxy
git config --global --unset https.proxy