git设置HTTP代理
来源:互联网 发布:淘宝与03年的非典 编辑:程序博客网 时间:2024/04/29 08:30
设置HTTP代理
如果公司使用代理,git就需要设置代理才能克隆远程仓库
执行下面两条语句
git config --global http.proxy 10.167.32.133:8080git config --global https.proxy 10.167.32.133:8080
如果需要用户名和密码
git config –global http.proxy http://user:password@10.167.32.133:8080git config –global http.proxy https://user:password@10.167.32.133:8080
然后就可以使用
git clone http://github.com/weiheli/sass-zh.git# 或git clone http://github.com/weiheli/sass-zh.git
不能用
git clone git@github.com:weiheli/sass-zh.git
删除HTTP代理
git config --system (或 --global 或 --local) --unset http.proxygit config --system (或 --global 或 --local) --unset https.proxy
GitHub Desktop
如果使用Github推出的桌面程序GitHub Desktop
,里面可能并没有代理设置的选项,不过这些客户端一般在底层都是调用的命令行工具,所以同样按照上述步骤进行设置即可。
0 0
- git设置http代理
- git设置http代理
- GIT设置HTTP代理
- git设置HTTP代理
- git设置HTTP代理
- git中设置http代理和取消http代理
- Ubuntu中git的http代理设置
- 为git设置http代理[GAE]
- svn和git设置http代理
- 为 git 设置 http https 代理
- git clone 命令行http代理设置
- linux 下设置 git 使用 http/https 代理(goagent)
- linux 下设置 git 使用 http/https 代理
- git 使用http代理
- 为git设置代理
- 为GIT设置代理
- 为Git设置代理
- 为git设置代理
- 鼠标滑过弹出层
- Play Framework介绍:使用Eclipse开发和调试
- 各种类型占用字节数,以及内存分块20150908
- 爬取GEEKPARK最近一年活跃会员
- MySQL 性能调优的10个方法
- git设置HTTP代理
- C++优先级20150909
- 排序算法之选择排序
- Linux常用SIG信号及其键值
- 一张图读懂Java多线程
- 第二周【项目1】 编制三个程序,分别调用三个版本的交换函数,观察结果
- pthread_cond_signal与pthread_cond_wait
- Spring MVC的优缺点
- 8 个不得不说的 MySQL 陷阱