Git(GitHub) 004 配置代理 目的:clone提速
2016-12-25 15:16
357 查看
你如果没有翻墙,就算通过本篇博客对你的Git进行了配置,也是没有一点效果的。
在终端中执行:
在终端中执行:
$ git config --global http.proxy http://127.0.0.1:1080 $ git config --global https.proxy https://127.0.0.1:1080[/code]
查看一下:$ git config --list
对于我现在使用的Windows 系统而言,输出是下面这个样子的。core.symlinks=false core.autocrlf=true core.fscache=true color.diff=auto color.status=auto color.branch=auto color.interactive=true help.format=html http.sslcainfo=C:/Program Files/Git/mingw64/ssl/certs/ca-bundle.crt diff.astextplain.textconv=astextplain rebase.autosquash=true credential.helper=manager filter.lfs.clean=git-lfs clean %f filter.lfs.smudge=git-lfs smudge %f filter.lfs.required=true user.name=AoboJaing user.email=744910955@qq.com https.proxy=https://127.0.0.1:1080 http.proxy=http://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'
参考网站:
https://git-scm.com/book/zh/v1/%E8%B5%B7%E6%AD%A5-%E5%88%9D%E6%AC%A1%E8%BF%90%E8%A1%8C-Git-%E5%89%8D%E7%9A%84%E9%85%8D%E7%BD%AE
https://gist.github.com/laispace/666dd7b27e9116faece6
请访问:http://www.aobosir.com/
相关文章推荐
- GitHub git clone下载配置
- 配置SSH Keys到github,实现git clone 能力
- github后台配置ssh key之后本地无法git clone的问题 Permission denied (publickey).
- 解决git无法clone提示443以及配置git代理方法
- github下载提速,git clone 提速
- 解决git无法clone提示443以及配置git代理方法
- 配置SSH Keys到github,实现git clone 能力
- Git客户端图文详解如何安装配置GitHub操作流程攻略
- git 配置代理
- Git客户端图文详解 如何安装配置GitHub操作流程攻略
- github for window 中 git shell 设置代理方法和解决ssl证书错误的问题
- [!] Pod::Executable clone 'https://github.com/CocoaPods/Specs.git' master
- git/github 配置小结
- GitHub GitBash配置SSH访问方式
- Git客户端图文详解如何安装配置GitHub操作流程攻略
- 针对Github的Git工具快速配置——当Github for windows无法下载时。。。
- 为Xcode配置Git和Github
- git之环境配置(window+git+github)